diff options
author | Ken Moore <ken@ixsystems.com> | 2017-10-06 09:23:11 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-10-06 09:23:11 -0400 |
commit | 7c986120915920c18a85397cd81c73df65a1eafb (patch) | |
tree | 0c98b2b217653232ca08d16f9962ad1d2a971a69 /src-qt5/core/lumina-desktop/LSession.cpp | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-7c986120915920c18a85397cd81c73df65a1eafb.tar.gz lumina-7c986120915920c18a85397cd81c73df65a1eafb.tar.bz2 lumina-7c986120915920c18a85397cd81c73df65a1eafb.zip |
Try to ensure that the transient QApplication for user file checks/updates is completely deleted.
Diffstat (limited to 'src-qt5/core/lumina-desktop/LSession.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop/LSession.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/LSession.cpp b/src-qt5/core/lumina-desktop/LSession.cpp index d1d6588e..0acd7303 100644 --- a/src-qt5/core/lumina-desktop/LSession.cpp +++ b/src-qt5/core/lumina-desktop/LSession.cpp @@ -391,12 +391,13 @@ void LSession::checkUserFiles(){ QString OVS = sset.value("DesktopVersion","0").toString(); //Old Version String char *tmp; int tmpN = 0; - QApplication A(tmpN, &tmp); + QApplication *A = new QApplication(tmpN, &tmp); bool changed = LDesktopUtils::checkUserFiles(OVS, LDesktopUtils::LuminaDesktopVersion()); if(changed){ //Save the current version of the session to the settings file (for next time) sset.setValue("DesktopVersion", LDesktopUtils::LuminaDesktopVersion()); } + delete A; } void LSession::refreshWindowManager(){ |