diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-14 12:48:16 +0200 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-03-16 21:11:55 +0900 |
commit | 02a4aa92fe215e454c5ede8480b770ccc3c4696f (patch) | |
tree | 21ae5f239448548296ab1dc7175b60c70a37a569 /src/klamscan.cpp | |
parent | 6d5126f2d0f30a192beba1c3ea7230932e929b32 (diff) | |
download | klamav-02a4aa92fe215e454c5ede8480b770ccc3c4696f.tar.gz klamav-02a4aa92fe215e454c5ede8480b770ccc3c4696f.zip |
Made Scheduler independent from Klamscan's DirectoryList.
This solves issue #20.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit 8af10422f097ffa90ec6367f817fafbd39d3b419)
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(){ |