static bool url_module_cleanup(KviModule *) { KviConfigurationFile cfg(szConfigPath, KviConfigurationFile::Read); cfg.setGroup("ConfigDialog"); if(cfg.readBoolEntry("SaveUrlListOnUnload", false) == true) saveUrlList(); for(auto tmpitem : g_UrlDlgList) { if(tmpitem->dlg) tmpitem->dlg->close(); } g_List.clear(); g_BanList.clear(); g_UrlDlgList.clear(); return true; }
static bool url_module_cleanup(KviModule *) { KviConfigurationFile cfg(szConfigPath,KviConfigurationFile::Read); cfg.setGroup("ConfigDialog"); if (cfg.readBoolEntry("SaveUrlListOnUnload",false) == true) saveUrlList(); for (UrlDlgList *tmpitem=g_pUrlDlgList->first();tmpitem;tmpitem=g_pUrlDlgList->next()) { if (tmpitem->dlg) tmpitem->dlg->close(); } delete g_pList; g_pList = 0; delete g_pBanList; g_pBanList = 0; delete g_pUrlDlgList; g_pUrlDlgList = 0; return true; }
void UrlDialog::saveList() { saveUrlList(); }