diff options
author | Mavridis Philippe <[email protected]> | 2021-03-14 12:48:16 +0200 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-03-16 21:11:55 +0900 |
commit | 02a4aa92fe215e454c5ede8480b770ccc3c4696f (patch) | |
tree | 21ae5f239448548296ab1dc7175b60c70a37a569 /src/klamav.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 <[email protected]>
(cherry picked from commit 8af10422f097ffa90ec6367f817fafbd39d3b419)
Diffstat (limited to 'src/klamav.cpp')
-rw-r--r-- | src/klamav.cpp | 7 |
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"); } |