filemanager/src/filemanager/src/fmviewmanager.cpp
changeset 33 328cf6fbe40c
parent 32 39cf9ced4cc4
child 40 4167eb56f30d
--- a/filemanager/src/filemanager/src/fmviewmanager.cpp	Fri Jul 23 11:12:24 2010 +0800
+++ b/filemanager/src/filemanager/src/fmviewmanager.cpp	Thu Aug 05 11:30:07 2010 +0800
@@ -179,8 +179,13 @@
     connect( this, SIGNAL( driveSpaceChanged() ), 
         driverView, SLOT( refreshDrive() ) );
     
+    // use Qt::QueuedConnection becuase synchronous refresh is not work well while
+    // connected with another OTG device which have more than one external drive in it.
+    // File server only give driveChanged event once, but two drive is inserted.
+    // Synchronous refresh will miss another drive.
+    // So use Qt::QueuedConnection to performance asynchronous refresh.
     connect( this, SIGNAL( driveChanged() ), 
-        driverView, SLOT( refreshDrive() ) );
+        driverView, SLOT( refreshDrive() ), Qt::QueuedConnection );
 }
 
 void FmViewManager::createFileView( const QString &path,