diff options
author | Mavridis Philippe <[email protected]> | 2021-03-14 12:48:16 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-03-16 13:30:50 +0200 |
commit | 8af10422f097ffa90ec6367f817fafbd39d3b419 (patch) | |
tree | 0870519c30143200f1f64d661ebd6547fcef99dd /src/klamscan.cpp | |
parent | 41a390bed867789ee1726c26219c25ae7f554a8e (diff) | |
download | klamav-8af10422f097ffa90ec6367f817fafbd39d3b419.tar.gz klamav-8af10422f097ffa90ec6367f817fafbd39d3b419.zip |
Made Scheduler independent from Klamscan's DirectoryList.
This solves issue #20.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/klamscan.cpp')
-rw-r--r-- | src/klamscan.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/klamscan.cpp b/src/klamscan.cpp index 1b04aca..ea5c92e 100644 --- a/src/klamscan.cpp +++ b/src/klamscan.cpp @@ -108,8 +108,7 @@ Klamscan::Klamscan(TQWidget *parent, const char *name) schedule->adjustSize(); layout->addWidget(schedule,0,4); - connect( schedule, SIGNAL(clicked()), - SLOT(slotSchedule()) ); + connect( schedule, SIGNAL(clicked()), tdemain, SLOT(slotScheduleScan()) ); TQToolButton* adv_options = new TQToolButton( privateLayoutWidget2,"play" ); @@ -300,24 +299,6 @@ void Klamscan::slotAdvOptions(){ } -void Klamscan::slotSchedule(){ - - TQStringList filepattern = setup->pruneSelectedDirs(setup->dirs()); - - - if (filepattern.isEmpty()){ - KMessageBox::error(this, i18n( "Please select something to scan!") ); - return; - } - - Schedule *dialog = new Schedule( this, filepattern, "settings"); - dialog->show(); - dialog->raise(); - dialog->setActiveWindow(); - - -} - void Klamscan::setDefaults(){ |