Commit f31a67fc authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Remove superfluous call of load() from configuration module c'tors

load() is invoked automatically when a configuration module is shown
for the first time. Apart from being unnecessary, calling a virtual
member function from a c'tor should be avoided at all costs.

GnuPG-bug-id: 5801
parent 9b38454c
......@@ -26,8 +26,6 @@ AppearanceConfigurationPage::AppearanceConfigurationPage(QWidget *parent, const
lay->addWidget(mWidget);
connect(mWidget, &AppearanceConfigWidget::changed, this, &Kleo::Config::AppearanceConfigurationPage::markAsChanged);
load();
}
void AppearanceConfigurationPage::load()
......
......@@ -26,7 +26,6 @@ CryptoOperationsConfigurationPage::CryptoOperationsConfigurationPage(QWidget *pa
mWidget = new CryptoOperationsConfigWidget(this);
lay->addWidget(mWidget);
connect(mWidget, &CryptoOperationsConfigWidget::changed, this, &Kleo::Config::CryptoOperationsConfigurationPage::markAsChanged);
load();
}
void CryptoOperationsConfigurationPage::load()
......
......@@ -413,7 +413,6 @@ DirectoryServicesConfigurationPage::DirectoryServicesConfigurationPage(QWidget *
: KCModule{parent, args}
, d{new Private{this}}
{
load();
}
DirectoryServicesConfigurationPage::~DirectoryServicesConfigurationPage() = default;
......
......@@ -33,8 +33,6 @@ GnuPGSystemConfigurationPage::GnuPGSystemConfigurationPage(QWidget *parent, cons
connect(mWidget, &CryptoConfigModule::changed, this, &Kleo::Config::GnuPGSystemConfigurationPage::markAsChanged);
load();
}
GnuPGSystemConfigurationPage::~GnuPGSystemConfigurationPage()
......
......@@ -25,7 +25,6 @@ SMimeValidationConfigurationPage::SMimeValidationConfigurationPage(QWidget *pare
lay->addWidget(mWidget);
connect(mWidget, &SMimeValidationConfigurationWidget::changed, this, &Kleo::Config::SMimeValidationConfigurationPage::markAsChanged);
load();
}
void SMimeValidationConfigurationPage::load()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment