|
|
|
@ -204,35 +204,35 @@ void Klamav::updateTabState( int tabId, bool init ) {
|
|
|
|
|
switch(tabId) {
|
|
|
|
|
case 0: // Welcome tab
|
|
|
|
|
optionName="ShowWelcomeTab";
|
|
|
|
|
tabName="Welcome";
|
|
|
|
|
tabName=i18n("Welcome");
|
|
|
|
|
tabWidget=aboutklamav;
|
|
|
|
|
itemId=showWelcomeTab;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 1: // Quarantine tab
|
|
|
|
|
optionName="ShowQuarantineTab";
|
|
|
|
|
tabName="Quarantine";
|
|
|
|
|
tabName=i18n("Quarantine");
|
|
|
|
|
tabWidget=kuarantine;
|
|
|
|
|
itemId=showQuarantineTab;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 2: // DBViewer tab
|
|
|
|
|
optionName="ShowDBViewerTab";
|
|
|
|
|
tabName="Virus Browser";
|
|
|
|
|
tabName=i18n("Virus Browser");
|
|
|
|
|
tabWidget=klamdb;
|
|
|
|
|
itemId=showDBViewerTab;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 3: // Events tab
|
|
|
|
|
optionName="ShowEventsTab";
|
|
|
|
|
tabName="Events";
|
|
|
|
|
tabName=i18n("Events");
|
|
|
|
|
tabWidget=activityviewer;
|
|
|
|
|
itemId=showEventsTab;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( config->readBoolEntry(optionName, true) ) {
|
|
|
|
|
tab->insertTab(tabWidget, i18n( tabName.ascii() ));
|
|
|
|
|
tab->insertTab(tabWidget, tabName.ascii());
|
|
|
|
|
tabWidget->show();
|
|
|
|
|
|
|
|
|
|
if(!init) tab->setCurrentPage( tab->indexOf(tabWidget) );
|
|
|
|
|