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

svn at pcbsd.org svn at pcbsd.org
Mon Oct 29 12:13:40 PDT 2012


Author: kenmoore
Date: 2012-10-29 19:13:40 +0000 (Mon, 29 Oct 2012)
New Revision: 20069

Modified:
   pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp
   pcbsd/current/src-qt4/pc-mounttray/menuItem.h
Log:
Fix a bug with the automount trying to mount too quickly in the new mounttray.



Modified: pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp	2012-10-29 19:12:10 UTC (rev 20068)
+++ pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp	2012-10-29 19:13:40 UTC (rev 20069)
@@ -54,7 +54,7 @@
   if(devType == "CD9660"){ devIcon->setPixmap(QPixmap(":icons/dvd.png")); }
   //Start the automount procedure if necessary
   if(checkAutomount->isChecked()){
-    mountItem();
+    QTimer::singleShot(500,this,SLOT( slotMountClicked() ));
   }
   //Update the Item based upon current device status
   updateItem();

Modified: pcbsd/current/src-qt4/pc-mounttray/menuItem.h
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/menuItem.h	2012-10-29 19:12:10 UTC (rev 20068)
+++ pcbsd/current/src-qt4/pc-mounttray/menuItem.h	2012-10-29 19:13:40 UTC (rev 20069)
@@ -14,6 +14,7 @@
 #include <QCheckBox>
 #include <QDebug>
 #include <QLabel>
+#include <QTimer>
 
 class MenuItem : public QWidgetAction
 {



More information about the Commits mailing list