Changeset 29644d7


Ignore:
Timestamp:
01/29/15 12:27:25 (2 months ago)
Author:
Ken Moore <ken@…>
Branches:
releng/10.1.1
Children:
6396629
Parents:
31d80eb
git-author:
Ken Moore <ken@…> (01/29/15 11:13:28)
git-committer:
Ken Moore <ken@…> (01/29/15 12:27:25)
Message:

Verify that the popup message in the mounttray is not shown when rescanning device unless there is a new device detected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt5/pc-mounttray/mountTray.cpp

    r41ae415 r29644d7  
    534534  //qDebug() << "Update Devices:" << avail << mounted; 
    535535  //Update the current menu items as necessary 
     536  bool newitems = false; 
    536537  for(int i=0; i<DEVLIST.length(); i++){ 
    537538    QString dev = DEVLIST[i]->node(); 
     539    //qDebug() << "Check device:" << dev; 
    538540    if(avail.contains(dev)){  
    539541      if(fast){ DEVLIST[i]->QuickUpdate(mounted.contains(dev)); } 
     
    550552  //Now create widgets for any new devices 
    551553  for(int i=0; i<avail.length(); i++){ 
     554    newitems = true; 
    552555    DeviceWidget *item = new DeviceWidget(this, avail[i]); 
    553556    connect(item, SIGNAL(CloseMenu()), this, SLOT(slotCloseMenu()) ); 
     
    559562  } 
    560563  //Now show a popup message about any new devices 
    561   if(!avail.isEmpty() && !MTINIT){ 
     564  if(!avail.isEmpty() && !MTINIT && newitems){ 
    562565    slotDisplayPopup(tr("Devices Available"), tr("New Devices are available for use")); 
    563566  } 
Note: See TracChangeset for help on using the changeset viewer.