[PC-BSD Commits] r17970 - pcbsd/current/src-qt4/pc-softwaremanager

svn at pcbsd.org svn at pcbsd.org
Fri Jul 27 08:18:22 PDT 2012


Author: kris
Date: 2012-07-27 15:18:22 +0000 (Fri, 27 Jul 2012)
New Revision: 17970

Modified:
   pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp
Log:

Make sure we remove the item widget when deleting an item. This fixes an 
issue with the details page showing an item installed, which is really not



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp	2012-07-27 15:16:44 UTC (rev 17969)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp	2012-07-27 15:18:22 UTC (rev 17970)
@@ -456,7 +456,7 @@
     PBI *item = dynamic_cast<PBI*>(*it);
     tmp2 = item->getName().toUpper();
     tmp2 = tmp2.replace(" ", "");
-    if ( tmp == tmp2 )
+    if ( tmp == tmp2 && ! item->doDelete())
        return true; 
     ++it;
   }
@@ -494,7 +494,7 @@
      if (item->isDirty() ) {
        item->setDelete(true);
        item->setHidden(true);
-       //SoftwareListBox->removeItemWidget((*it), 0);
+       SoftwareListBox->removeItemWidget((*it), 0);
        //delete it;
      }
      ++it;



More information about the Commits mailing list