From 02a4aa92fe215e454c5ede8480b770ccc3c4696f Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 14 Mar 2021 12:48:16 +0200 Subject: Made Scheduler independent from Klamscan's DirectoryList. This solves issue #20. Signed-off-by: Mavridis Philippe (cherry picked from commit 8af10422f097ffa90ec6367f817fafbd39d3b419) --- src/klamscan.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/klamscan.cpp') 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" ); @@ -298,24 +297,6 @@ void Klamscan::slotAdvOptions(){ tdemain->slotConfigKlamav( "Scanning Backend" ); -} - -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(); - - } -- cgit v1.2.1