Changeset 1a09105


Ignore:
Timestamp:
Aug 19, 2013 5:34:39 AM (11 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
f3f036a
Parents:
db5e0d0
Message:

Make sure that we do not open up the filemanager during the mounttray initialization. This should prevent opening a ton of file manager windows when you boot the system if you have a bunch of harddrive partitions set to automount.

Location:
src-qt4/pc-mounttray
Files:
2 edited

Legend:

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

    r176289d r1a09105  
    1919  DCheck = new DevCheck(); //initialize class for checking devices 
    2020  qDebug() << "pc-mounttray: starting up"; 
     21  MTINIT=true; //set the flag that the mount tray is initializing; 
    2122  getInitialUsername(); //try to detect the non-root user who is running the program with root permissions 
    2223  getDefaultFileManager(); //try to detect the default file-manager for opening the mount directory 
     
    7172 
    7273  qDebug() << "-Program now ready for use"; 
     74  MTINIT=false; 
    7375} 
    7476 
     
    303305 
    304306void MountTray::openMediaDir(QString dir){ 
     307  if(MTINIT){ return; } //don't open the FM during program initialization 
    305308  //Open the default file-manager to the directory listed 
    306309  if(dir.isEmpty()){ dir = MOUNTDIR; } 
  • src-qt4/pc-mounttray/mountTray.h

    r176289d r1a09105  
    7373  int diskTimerMaxMS; //milliseconds 
    7474  QString popupSave; //for saving the device for the latest pop-up message 
     75  bool MTINIT; 
    7576 
    7677  void updateMenu(); 
Note: See TracChangeset for help on using the changeset viewer.