Make the network actions disappear again :p
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Feb 2008 21:57:10 +0000 (21:57 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Feb 2008 21:57:10 +0000 (21:57 +0000)
src/qtui/mainwin.cpp
version.inc

index 2d980dc..83032f1 100644 (file)
@@ -377,9 +377,10 @@ void MainWin::clientNetworkRemoved(NetworkId id) {
   QAction *action;
   while(actionIter != networkActions.end()) {
     action = *actionIter;
   QAction *action;
   while(actionIter != networkActions.end()) {
     action = *actionIter;
-    if(action->data().value<NetworkId>() == id)
+    if(action->data().value<NetworkId>() == id) {
+      action->deleteLater();
       actionIter = networkActions.erase(actionIter);
       actionIter = networkActions.erase(actionIter);
-    else
+    else
       actionIter++;
   }
 }
       actionIter++;
   }
 }
index 05c6e71..665f571 100644 (file)
@@ -5,7 +5,7 @@
 
   quasselVersion = "0.2.0-pre";
   quasselDate = "2008-02-02";
 
   quasselVersion = "0.2.0-pre";
   quasselDate = "2008-02-02";
-  quasselBuild = 440;
+  quasselBuild = 441;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 435;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 435;