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()
|
||||
{
|
||||
if (uiprefs == 0) {
|
||||
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();
|
||||
}
|
||||
showUIPrefs();
|
||||
uiprefs->tabWidget->setCurrentIndex(3);
|
||||
uiprefs->show();
|
||||
}
|
||||
|
||||
void RclMain::showAboutDialog()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue