summaryrefslogtreecommitdiffstats
path: root/src/klamav.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-03-14 12:48:16 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-03-16 13:30:50 +0200
commit8af10422f097ffa90ec6367f817fafbd39d3b419 (patch)
tree0870519c30143200f1f64d661ebd6547fcef99dd /src/klamav.cpp
parent41a390bed867789ee1726c26219c25ae7f554a8e (diff)
downloadklamav-8af10422f097ffa90ec6367f817fafbd39d3b419.tar.gz
klamav-8af10422f097ffa90ec6367f817fafbd39d3b419.zip
Made Scheduler independent from Klamscan's DirectoryList.
This solves issue #20. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/klamav.cpp')
-rw-r--r--src/klamav.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/klamav.cpp b/src/klamav.cpp
index 734858c..a79a58d 100644
--- a/src/klamav.cpp
+++ b/src/klamav.cpp
@@ -6,6 +6,7 @@
#include "freshklam.h"
#include "sigtool.h"
#include "klamscan.h"
+#include "schedule.h"
#include "kuarantine.h"
#include "welcome.h"
#include "dbviewer.h"
@@ -289,8 +290,12 @@ void Klamav::slotScanDir() {
}
void Klamav::slotScheduleScan() {
- klamscan->slotSchedule();
+ Schedule *schedule_dlg = new Schedule(this, "scheduler");
+ schedule_dlg->show();
+ schedule_dlg->raise();
+ schedule_dlg->setActiveWindow();
}
+
void Klamav::slotOptions() {
slotConfigKlamav("Scanning Backend");
}