prefs window: factorize show prefs/show ext idx

This commit is contained in:
Jean-Francois Dockes 2015-11-21 12:50:22 +01:00
parent 10dcb8bb7d
commit ea01917b92

View file

@ -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()