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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/xmlgui
From:       David Faure <faure () kde ! org>
Date:       2009-03-31 21:56:59
Message-ID: 1238536619.843317.542.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 947619 by dfaure:

Fix the other kxmlgui bug found by Will: merge an empty qdomdocument in case of a parse error, otherwise
one gets all the ui_standards menu (empty), which is kind of confusing. PEBCAK though, for not reading runtime warnings :)
CCMAIL: wstephenson@kde.org


 M  +1 -0      kxmlguiclient.cpp  


--- trunk/KDE/kdelibs/kdeui/xmlgui/kxmlguiclient.cpp #947618:947619
@@ -237,6 +237,7 @@
     } else {
 #ifdef NDEBUG
         kError() << "Error parsing XML document:" << errorMsg << "at line" << errorLine << "column" << errorColumn;
+        setDOMDocument(QDomDocument(), merge); // otherwise empty menus from ui_standards.rc stay around
 #else
         kFatal() << "Error parsing XML document:" << errorMsg << "at line" << errorLine << "column" << errorColumn;
 #endif
[prev in list] [next in list] [prev in thread] [next in thread] 

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