[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/krita/ui
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2010-11-17 8:37:50
Message-ID: 20101117083750.22B7FAC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1197965 by berger:

Fix startup crash, create the about data in the aboutdata() function

BUG: 257100


 M  +3 -2      kis_factory2.cc  


--- trunk/koffice/krita/ui/kis_factory2.cc #1197964:1197965
@@ -57,8 +57,6 @@
 KisFactory2::KisFactory2(QObject* parent)
         : KPluginFactory(*aboutData(), parent)
 {
-    s_aboutData = newKritaAboutData();
-
     (void)componentData();
 }
 
@@ -92,6 +90,9 @@
 
 KAboutData* KisFactory2::aboutData()
 {
+    if (!s_aboutData) {
+        s_aboutData = newKritaAboutData();
+    }
     return s_aboutData;
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic