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

List:       kde-commits
Subject:    kdewebdev/quanta
From:       Andras Mantia <amantia () kde ! org>
Date:       2005-04-13 12:27:52
Message-ID: 20050413122752.A0CF4492 () office ! kde ! org
[Download RAW message or body]

CVS commit by amantia: 

Don't crash when Selected is pressed and nothing is selected (in the CSS editor).

BUG: 101919


  M +1 -1      quanta.kdevelop   1.326
  M +1 -1      components/csseditor/cssselector.cpp   1.18


--- kdewebdev/quanta/quanta.kdevelop  #1.325:1.326
@@ -164,5 +164,5 @@
     <tree>
       <hidenonprojectfiles>false</hidenonprojectfiles>
-      <hidepatterns></hidepatterns>
+      <hidepatterns/>
       <showvcsfields>true</showvcsfields>
     </tree>

--- kdewebdev/quanta/components/csseditor/cssselector.cpp  #1.17:1.18
@@ -306,6 +306,6 @@ void CSSSelector::removeAll(){
 
 void CSSSelector::removeSelected(){
-  m_currentStylesheetStructure.remove(m_currentItem->text(0));
   if( m_currentItem ) {
+    m_currentStylesheetStructure.remove(m_currentItem->text(0));
     delete m_currentItem;
    // m_currentItem = 0L;


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

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