prefs window: factorize show prefs/show ext idx
This commit is contained in:
parent
53f57e75c6
commit
183c6d312c
@ -255,17 +255,8 @@ void RclMain::showUIPrefs()
|
|||||||
|
|
||||||
void RclMain::showExtIdxDialog()
|
void RclMain::showExtIdxDialog()
|
||||||
{
|
{
|
||||||
if (uiprefs == 0) {
|
showUIPrefs();
|
||||||
uiprefs = new UIPrefsDialog(this);
|
|
||||||
connect(new QShortcut(quitKeySeq, uiprefs), SIGNAL (activated()),
|
|
||||||
this, SLOT (fileExit()));
|
|
||||||
connect(uiprefs, SIGNAL(uiprefsDone()), this, SLOT(setUIPrefs()));
|
|
||||||
} else {
|
|
||||||
// Close and reopen, in hope that makes us visible...
|
|
||||||
uiprefs->close();
|
|
||||||
}
|
|
||||||
uiprefs->tabWidget->setCurrentIndex(3);
|
uiprefs->tabWidget->setCurrentIndex(3);
|
||||||
uiprefs->show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RclMain::showAboutDialog()
|
void RclMain::showAboutDialog()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user