Changeset c4ff3c1


Ignore:
Timestamp:
02/26/14 09:30:07 (10 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
0ba50005, 316d4d3
Parents:
fdad871
Message:

Make sure that the right-click menu ensures that there is an actual item under the right-click, otherwise do nothing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/mainUI.cpp

    rfdad871 rc4ff3c1  
    504504void MainUI::slotInstalledAppRightClicked(const QPoint &pt){ 
    505505  //Get the item under the mouse click 
    506   QString pbiID = ui->tree_install_apps->itemAt(pt)->whatsThis(0); 
     506  QTreeWidgetItem *it = ui->tree_install_apps->itemAt(pt); 
     507  if(it==0){ return; } // no item selected 
     508  QString pbiID = it->whatsThis(0); 
    507509  qDebug() << "Get context menu for:" << pbiID; 
    508510  //Now Update the context menu appropriately 
Note: See TracChangeset for help on using the changeset viewer.