Update language display dialog so it comes to the top of the Windows stack when started.

This commit is contained in:
Seeker4 2019-05-09 10:32:11 -07:00 committed by Guy Scharf
parent d57116b1e4
commit 0967b2013e

View File

@ -155,7 +155,10 @@ void initTranslations()
langsel.connect(&langlist, SIGNAL(itemDoubleClicked(QListWidgetItem*)), &langsel, SLOT(close()));
langsel.connect(&lang_okbtn, SIGNAL(clicked()), &langsel, SLOT(close()));
langsel.raise();
langsel.exec();
langsel.disconnect(&lang_okbtn, SIGNAL(clicked()), &langsel, SLOT(close()));
langsel.disconnect(&langlist, SIGNAL(itemDoubleClicked(QListWidgetItem*)), &langsel, SLOT(close()));
language = langlist.currentItem()->data(Qt::UserRole).toString();