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

List:       kde-commits
Subject:    KDE_3_3_BRANCH: kdelibs/kdeui
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2004-11-25 23:11:08
Message-ID: 20041125231108.0C2DB1CFA3 () office ! kde ! org
[Download RAW message or body]

CVS commit by aacid: 

Don't stop the loop when finding a comment. Reviewed by David Faure


  M +4 -2      kedittoolbar.cpp   1.99.2.2


--- kdelibs/kdeui/kedittoolbar.cpp  #1.99.2.1:1.99.2.2
@@ -876,7 +876,9 @@ void KEditToolbarWidget::loadActionList(
 
   // see if our current action is in this toolbar
-  QDomElement it = elem.lastChild().toElement();
-  for( ; !it.isNull(); it = it.previousSibling().toElement() )
+  QDomNode n = elem.lastChild();
+  for( ; !n.isNull(); n = n.previousSibling() )
   {
+    QDomElement it = n.toElement();
+    if (it.isNull()) continue;
     if (it.tagName() == tagSeparator)
     {


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

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