diff options
Diffstat (limited to 'src/klamav.cpp')
-rw-r--r-- | src/klamav.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/klamav.cpp b/src/klamav.cpp index dbe311c..6c191f7 100644 --- a/src/klamav.cpp +++ b/src/klamav.cpp @@ -267,7 +267,8 @@ void Klamav::tabClosed(TQString name) { optionName="ShowEventsTab"; } - tabs_menu->setItemChecked(uncheck, false); + tabs_menu->setItemChecked(uncheck, false); + config->setGroup("Tabs"); config->writeEntry(optionName, false); } @@ -288,6 +289,9 @@ void Klamav::slotOptions() { } void Klamav::slotToggleWelcome() { + if( config->group() != "Tabs" ) + config->setGroup("Tabs"); + bool newState = ! config->readBoolEntry("ShowWelcomeTab", true); config->writeEntry("ShowWelcomeTab", newState); config->sync(); @@ -295,6 +299,9 @@ void Klamav::slotToggleWelcome() { updateTabState(0, false); } void Klamav::slotToggleQuarantine() { + if( config->group() != "Tabs" ) + config->setGroup("Tabs"); + bool newState = ! config->readBoolEntry("ShowQuarantineTab", true); config->writeEntry("ShowQuarantineTab", newState); config->sync(); @@ -302,6 +309,9 @@ void Klamav::slotToggleQuarantine() { updateTabState(1, false); } void Klamav::slotToggleDBViewer() { + if( config->group() != "Tabs" ) + config->setGroup("Tabs"); + bool newState = ! config->readBoolEntry("ShowDBViewerTab", true); config->writeEntry("ShowDBViewerTab", newState); config->sync(); @@ -309,6 +319,9 @@ void Klamav::slotToggleDBViewer() { updateTabState(2, false); } void Klamav::slotToggleEvents() { + if( config->group() != "Tabs" ) + config->setGroup("Tabs"); + bool newState = ! config->readBoolEntry("ShowEventsTab", true); config->writeEntry("ShowEventsTab", newState); config->sync(); |