[PC-BSD Commits] r20070 - pcbsd/branches/9.1/src-qt4/pc-mounttray

svn at pcbsd.org svn at pcbsd.org
Mon Oct 29 12:14:21 PDT 2012


Author: kenmoore
Date: 2012-10-29 19:14:21 +0000 (Mon, 29 Oct 2012)
New Revision: 20070

Modified:
   pcbsd/branches/9.1/src-qt4/pc-mounttray/menuItem.cpp
   pcbsd/branches/9.1/src-qt4/pc-mounttray/menuItem.h
Log:
MFC the fix for the automount bug to the 9.1 mounttray



Modified: pcbsd/branches/9.1/src-qt4/pc-mounttray/menuItem.cpp
===================================================================
--- pcbsd/branches/9.1/src-qt4/pc-mounttray/menuItem.cpp	2012-10-29 19:13:40 UTC (rev 20069)
+++ pcbsd/branches/9.1/src-qt4/pc-mounttray/menuItem.cpp	2012-10-29 19:14:21 UTC (rev 20070)
@@ -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/branches/9.1/src-qt4/pc-mounttray/menuItem.h
===================================================================
--- pcbsd/branches/9.1/src-qt4/pc-mounttray/menuItem.h	2012-10-29 19:13:40 UTC (rev 20069)
+++ pcbsd/branches/9.1/src-qt4/pc-mounttray/menuItem.h	2012-10-29 19:14:21 UTC (rev 20070)
@@ -14,6 +14,7 @@
 #include <QCheckBox>
 #include <QDebug>
 #include <QLabel>
+#include <QTimer>
 
 class MenuItem : public QWidgetAction
 {



More information about the Commits mailing list