summaryrefslogtreecommitdiffstats
path: root/src/configdialog.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-02-07 21:53:39 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-02-07 21:55:06 +0200
commit9976c0cfc6516af25dd26ccba03e389781431825 (patch)
treeb3e88fea61c8b8c699db079bff3acada197303cb /src/configdialog.cpp
parentbce9b7501ce96635e4c1c27093abe1aaae9a34b4 (diff)
downloadklamav-9976c0cfc6516af25dd26ccba03e389781431825.tar.gz
klamav-9976c0cfc6516af25dd26ccba03e389781431825.zip
Added a new, separate options section for Archives.
Options from the Archive Limits section have been moved there. A new option for disabling/enabling archive scanning has been added (--scan-archives switch for clamscan). This is related to issue #15. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/configdialog.cpp')
-rw-r--r--src/configdialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configdialog.cpp b/src/configdialog.cpp
index b363550..5cd76ac 100644
--- a/src/configdialog.cpp
+++ b/src/configdialog.cpp
@@ -15,7 +15,7 @@ email : markey@web.de
#include "configdialog.h"
#include "backend.h"
-#include "archivelimits.h"
+#include "archives.h"
#include "specialfiletypes.h"
/* #include "autoscanoptions.h" */
#include "logoptions.h"
@@ -54,7 +54,7 @@ KlamavConfigDialog::KlamavConfigDialog( TQWidget *parent, const char* name, TDEC
// IMPORTANT Don't simply change the page names, they are used as identifiers in other parts of the app.
m_klambackend = new KlamBackend( 0, "Scanning Backend" );
- m_archivelimits = new ArchiveLimits( 0, "Archive Limits" );
+ m_archives = new ArchiveOptions( 0, "Archives" );
m_emailprotection = new Sigtool ( 0, "E-mail protection" );
m_specialfiletypes = new SpecialFileTypes( 0, "File Types" );
/* m_autoscanoptions = new AutoScanOptions( 0, "Auto-Scan" ); */
@@ -65,7 +65,7 @@ KlamavConfigDialog::KlamavConfigDialog( TQWidget *parent, const char* name, TDEC
connect( m_klambackend->kcfg_ScannerClamdscan, SIGNAL(toggled(bool)), this, SLOT(slotToggleClamdscan(bool)) );
slotToggleClamdscan( m_klambackend->kcfg_ScannerClamdscan->isOn() ); // initial state
- addPage( m_archivelimits, i18n( "Archive Limits" ), "ark", i18n( "Configure Archive Limits" ) );
+ addPage( m_archives, i18n( "Archives" ), "ark", i18n( "Configure Archive Scanning" ) );
addPage( m_emailprotection, i18n( "E-mail protection" ), "email", i18n( "Set up your e-mail client to use Klammail" ) );
addPage( m_specialfiletypes, i18n( "File Types" ), "folder", i18n( "Configure File Types" ) );
/* addPage( m_autoscanoptions, i18n( "Auto-Scan" ), "filefind", i18n( "Configure Auto-Scan" ) ); */
@@ -92,7 +92,7 @@ KlamavConfigDialog::~KlamavConfigDialog()
void KlamavConfigDialog::slotToggleClamdscan(bool on)
{
m_klambackend->kcfg_ClamdMultiscan->setEnabled(on);
- m_archivelimits->setEnabled(!on);
+ m_archives->setEnabled(!on);
m_specialfiletypes->setEnabled(!on);
}