aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/lumina-desktop/LSession.cpp3
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(){
bgstack15