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

List:       kde-commits
Subject:    kdesdk/kbabel/catalogmanager
From:       Stanislav Višňovský <visnovsky () nenya ! ms ! mff ! cuni ! cz
Date:       2004-02-01 21:25:19
Message-ID: 20040201212519.9146B9840 () office ! kde ! org
[Download RAW message or body]

CVS commit by nanulo: 

Don't crash on forced update of removed dir/file.


  M +7 -1      catalogmanagerview.cpp   1.91


--- kdesdk/kbabel/catalogmanager/catalogmanagerview.cpp  #1.90:1.91
@@ -2726,6 +2726,12 @@ void CatalogManagerView::updateCurrent()
             directoryChanged(current->poFile() );
         }
+        
+        // check, if the item didn't get lost by the update in directoryChanged()
+        CatManListItem *new_current = static_cast<CatManListItem *>(currentItem());
+        if (new_current == current)
+        {
         current->forceUpdate();
     }
+    }
 }
 


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

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