Skip to content

Commit

Permalink
- Delete global QSettings object when application quits.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22202 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Sep 9, 2014
1 parent bd34281 commit 8844725
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/MainWindow.cpp
Expand Up @@ -640,6 +640,7 @@ void MainWindow::beforeClosingMainWindow()
pSettings->setValue("application/windowState", saveState());
// save last Open Directory location
pSettings->setValue("lastOpenDirectory", StringHandler::getLastOpenDirectory());
delete pSettings;
}

void MainWindow::openDroppedFile(QDropEvent *event)
Expand Down

0 comments on commit 8844725

Please sign in to comment.