Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > cf746698214707f972e669b661d0ae59 > files > 12

kdepim4-4.14.10-1.3.mga5.src.rpm

From ea9ef72d49d4d79e22f5b1fe9d5d9fb44eeea207 Mon Sep 17 00:00:00 2001
From: Allen Winter <winter@kde.org>
Date: Sun, 6 Sep 2015 11:21:14 -0400
Subject: [PATCH 12/74] main.cpp - wrap mMainWindow in QPointer for safety 5
 year old patch from Christopher Feck to solve the activatePlugin crash

BUG: 193514
MERGE: safe for merging to modern versions
---
 kontact/src/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kontact/src/main.cpp b/kontact/src/main.cpp
index 069da4dcfd..92d46968c6 100644
--- a/kontact/src/main.cpp
+++ b/kontact/src/main.cpp
@@ -81,7 +81,7 @@ public Q_SLOTS:
     void loadCommandLineOptionsForNewInstance();
 
 private:
-    MainWindow *mMainWindow;
+    QPointer<MainWindow> mMainWindow;
     bool mSessionRestored;
 };
 
-- 
2.14.1