From 7c986120915920c18a85397cd81c73df65a1eafb Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 6 Oct 2017 09:23:11 -0400 Subject: Try to ensure that the transient QApplication for user file checks/updates is completely deleted. --- src-qt5/core/lumina-desktop/LSession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src-qt5/core/lumina-desktop') 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(){ -- cgit