Fixed crash when using -noload to disable multiple plugins

The noload behavior is also changed: it now always shows the plugins in
About Plugins... menu, even though -noload was used. When using -noload,
the enabled state of the plugin is not saved, so if the command line
arg is removed, the plugin will be loaded normally.

Reviewed-by: con
This commit is contained in:
Lasse Holmstedt
2010-05-12 14:34:36 +02:00
parent 9bc9fe73e1
commit bc00f859c5
9 changed files with 47 additions and 53 deletions

View File

@@ -111,7 +111,7 @@ void PluginDialog::updateButtons()
if (selectedSpec) {
m_detailsButton->setEnabled(true);
m_errorDetailsButton->setEnabled(selectedSpec->hasError()
|| selectedSpec->isDisabledByDependency()
|| selectedSpec->isDisabledIndirectly()
|| !selectedSpec->isEnabled());
} else {
m_detailsButton->setEnabled(false);