xconfig: fix 'Show Debug' functionality
xconfig - Fix missing 'Show Debug' functionality. xconfig Help mentions 'Show Debug Info' but it was missing from any menu. * Add 'Show debug' menu to the main menu. * Properly load showDebug settings. Reported-by: Jason Vas Dias <jason.vas.dias@gmail.com> Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Michal Marek <mmarek@suse.com>
This commit is contained in:
parent
79e51b5c2d
commit
e039303ff7
|
@ -1014,7 +1014,7 @@ ConfigInfoView::ConfigInfoView(QWidget* parent, const char *name)
|
||||||
|
|
||||||
if (!objectName().isEmpty()) {
|
if (!objectName().isEmpty()) {
|
||||||
configSettings->beginGroup(objectName());
|
configSettings->beginGroup(objectName());
|
||||||
_showDebug = configSettings->value("/showDebug", false).toBool();
|
setShowDebug(configSettings->value("/showDebug", false).toBool());
|
||||||
configSettings->endGroup();
|
configSettings->endGroup();
|
||||||
connect(configApp, SIGNAL(aboutToQuit()), SLOT(saveSettings()));
|
connect(configApp, SIGNAL(aboutToQuit()), SLOT(saveSettings()));
|
||||||
}
|
}
|
||||||
|
@ -1474,6 +1474,7 @@ ConfigMainWindow::ConfigMainWindow(void)
|
||||||
optionMenu->addSeparator();
|
optionMenu->addSeparator();
|
||||||
optionMenu->addActions(optGroup->actions());
|
optionMenu->addActions(optGroup->actions());
|
||||||
optionMenu->addSeparator();
|
optionMenu->addSeparator();
|
||||||
|
optionMenu->addAction(showDebugAction);
|
||||||
|
|
||||||
// create help menu
|
// create help menu
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
|
Loading…
Reference in New Issue