prefs window: factorize show prefs/show ext idx
This commit is contained in:
parent
10dcb8bb7d
commit
ea01917b92
1 changed files with 1 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue