@ -346,16 +346,18 @@ void Klamav::firstRunWizard() {
TQString homepath = getenv ( " HOME " ) ;
TQString homepath = getenv ( " HOME " ) ;
TQString defaultdb = homepath + " /.klamav/database " ;
TQString defaultdb = homepath + " /.klamav/database " ;
TQString defaultquar = homepath + " /.klamav/quarantine " ;
TQString defaultquar = homepath + " /.klamav/quarantine " ;
if ( wizard . exec ( ) ! = TQDialog : : Rejected ) {
// Execute wizard
wizard . exec ( ) ;
// These are run after the wizard is finished
TDEConfig * config = TDEGlobal : : config ( ) ;
TDEConfig * config = TDEGlobal : : config ( ) ;
config - > setGroup ( " Freshklam " ) ;
config - > setGroup ( " Freshklam " ) ;
TQString wizardDBPath = wizard . databasePath ( ) . path ( - 1 ) ;
TQString wizardDBPath = wizard . databasePath ( ) . path ( - 1 ) ;
TQString wizardTQRPath = wizard . quarantinePath ( ) . path ( - 1 ) ;
TQString wizardTQRPath = wizard . quarantinePath ( ) . path ( - 1 ) ;
/* kdDebug() << wizard.databasePath() << endl;
kdDebug ( ) < < wizard . defaultDatabasePath ( ) < < endl ; */
//Configure Database Path
//Configure Database Path
TQStringList lastDownloadPaths ;
TQStringList lastDownloadPaths ;
if ( ( wizardDBPath ! = " " ) & & ( TQDir : : cleanDirPath ( wizardDBPath ) ! = defaultdb ) ) {
if ( ( wizardDBPath ! = " " ) & & ( TQDir : : cleanDirPath ( wizardDBPath ) ! = defaultdb ) ) {
@ -367,14 +369,12 @@ void Klamav::firstRunWizard() {
}
}
config - > writeEntry ( " lastDownloadPaths " , lastDownloadPaths ) ;
config - > writeEntry ( " lastDownloadPaths " , lastDownloadPaths ) ;
config - > sync ( ) ;
config - > sync ( ) ;
//Configure Quarantine Path
//Configure Quarantine Path
TQStringList lastQuarLocations ;
TQStringList lastQuarLocations ;
config - > setGroup ( " Kuarantine " ) ;
config - > setGroup ( " Kuarantine " ) ;
/* kdDebug() << wizard.quarantinePath() << endl;
kdDebug ( ) < < wizard . defaultQuarantinePath ( ) < < endl ;
kdDebug ( ) < < defaultquar < < endl ; */
if ( ( wizardTQRPath ! = " " ) & & ( TQDir : : cleanDirPath ( wizardTQRPath ) ! = defaultquar ) ) {
if ( ( wizardTQRPath ! = " " ) & & ( TQDir : : cleanDirPath ( wizardTQRPath ) ! = defaultquar ) ) {
lastQuarLocations . prepend ( TQString ( " %1 " ) . arg ( wizardTQRPath ) ) ;
lastQuarLocations . prepend ( TQString ( " %1 " ) . arg ( wizardTQRPath ) ) ;
checkDir ( wizardTQRPath ) ;
checkDir ( wizardTQRPath ) ;
@ -390,7 +390,6 @@ void Klamav::firstRunWizard() {
downloadDBForWizard = true ;
downloadDBForWizard = true ;
}
}
}
}
}