1
0
Fork 0

GUI: only save main window settings once

This commit is contained in:
mrexodia 2016-12-19 23:34:33 +01:00
parent ec25e22ecd
commit b82f04311f
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 3 additions and 2 deletions

View File

@ -445,11 +445,12 @@ void MainWindow::setupLanguagesMenu()
void MainWindow::closeEvent(QCloseEvent* event)
{
saveWindowSettings();
duint noClose = 0;
if(bCanClose)
{
saveWindowSettings();
emit Bridge::getBridge()->close();
}
if(BridgeSettingGetUint("Gui", "NoCloseDialog", &noClose) && noClose)
mCloseDialog->hide();
else