[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

kdenonbeta/kdedebian/kapture/libkapture



CVS commit by mornfall: 

The context menu is now context-sensitive. Installing anything but packages
makes little sense. I might add "install all" for sections, will see...


  M +5 -3      listtreewidget.cpp   1.30


--- kdenonbeta/kdedebian/kapture/libkapture/listtreewidget.cpp  #1.29:1.30
@@ -270,7 +270,9 @@ void ListTreeWidget::contextMenu (QListV
     m_itemWithMenu = dynamic_cast <KListViewItemCustom *> (it) -> m_treeNode;
     QPopupMenu *m = new QPopupMenu (this);
+    if (pkgCElem (**m_itemWithMenu)) {
     m -> insertItem ("Install", this, SLOT (contextInstall ()));
     m -> insertItem ("Uninstall", this, SLOT (contextUninstall ()));
     m -> insertItem ("Keep", this, SLOT (contextKeep ()));
+    }
     m -> exec (p);
     delete m;




Reply to: