[PC-BSD Commits] r21941 - pcbsd/current/src-qt4/pc-mounttray

svn at pcbsd.org svn at pcbsd.org
Thu Mar 21 15:49:47 PDT 2013


Author: kenmoore
Date: 2013-03-21 22:49:47 +0000 (Thu, 21 Mar 2013)
New Revision: 21941

Modified:
   pcbsd/current/src-qt4/pc-mounttray/main.cpp
   pcbsd/current/src-qt4/pc-mounttray/mountTray.h
Log:
Try to implement a cleanup routine for the mounttray in case the user shuts down the system when devices are still mounted. Still need to test if it falls into the cleanup routine during a shutdown procedure.



Modified: pcbsd/current/src-qt4/pc-mounttray/main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/main.cpp	2013-03-21 21:37:14 UTC (rev 21940)
+++ pcbsd/current/src-qt4/pc-mounttray/main.cpp	2013-03-21 22:49:47 UTC (rev 21941)
@@ -53,7 +53,7 @@
 
    // Init our program
    QObject::connect(&a, SIGNAL(messageReceived(const QString&)), &tray, SLOT(slotSingleInstance()) );
-
+   QObject::connect(&a, SIGNAL(aboutToQuit()),&tray,SLOT(closeTray()));
    tray.programInit();
    return  a.exec();
 }

Modified: pcbsd/current/src-qt4/pc-mounttray/mountTray.h
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/mountTray.h	2013-03-21 21:37:14 UTC (rev 21940)
+++ pcbsd/current/src-qt4/pc-mounttray/mountTray.h	2013-03-21 22:49:47 UTC (rev 21941)
@@ -33,8 +33,10 @@
    
    ~MountTray();
    
+public slots:
+  void closeTray();
+  
 private slots:
-  void closeTray();
   void slotSingleInstance();
   void newDevdMessage();
   void slotDevChanges(bool showPopup = TRUE);
@@ -64,7 +66,7 @@
   void startupDevdProc();
   void getInitialUsername();
   void getDefaultFileManager();
-
+  
 };
 
 #endif



More information about the Commits mailing list