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

List:       kde-commits
Subject:    koffice/kexi/core
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2009-03-19 23:09:51
Message-ID: 1237504191.903387.30352.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 941557 by staniek:

Core
= show error when no KexiWindowData is returned by the current plugin



 M  +8 -1      kexipart.cpp  


--- trunk/koffice/kexi/core/kexipart.cpp #941556:941557
@@ -283,7 +283,14 @@
         window->mdiParent()->setIcon(*window->icon());
 #endif
 // window->setWindowIcon( *window->icon() );
-    window->setData(createWindowData(window));
+    KexiWindowData *windowData = createWindowData(window);
+    if (!windowData) {
+        d->status = \
Kexi::ObjectStatus(KexiMainWindowIface::global()->project()->dbConnection(), +        \
i18n("Could not create object's window."), i18n("The plugin or object definition may \
be corrupted.")); +        delete window;
+        return 0;
+    }
+    window->setData(windowData);
 
     if (!item.neverSaved()) {
         //we have to load schema data for this dialog


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

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