filemanager/src/filemanager/src/fmviewmanager.cpp
changeset 33 328cf6fbe40c
parent 32 39cf9ced4cc4
child 40 4167eb56f30d
equal deleted inserted replaced
32:39cf9ced4cc4 33:328cf6fbe40c
   177     mMainWindow->setCurrentView( driverView );
   177     mMainWindow->setCurrentView( driverView );
   178 
   178 
   179     connect( this, SIGNAL( driveSpaceChanged() ), 
   179     connect( this, SIGNAL( driveSpaceChanged() ), 
   180         driverView, SLOT( refreshDrive() ) );
   180         driverView, SLOT( refreshDrive() ) );
   181     
   181     
       
   182     // use Qt::QueuedConnection becuase synchronous refresh is not work well while
       
   183     // connected with another OTG device which have more than one external drive in it.
       
   184     // File server only give driveChanged event once, but two drive is inserted.
       
   185     // Synchronous refresh will miss another drive.
       
   186     // So use Qt::QueuedConnection to performance asynchronous refresh.
   182     connect( this, SIGNAL( driveChanged() ), 
   187     connect( this, SIGNAL( driveChanged() ), 
   183         driverView, SLOT( refreshDrive() ) );
   188         driverView, SLOT( refreshDrive() ), Qt::QueuedConnection );
   184 }
   189 }
   185 
   190 
   186 void FmViewManager::createFileView( const QString &path,
   191 void FmViewManager::createFileView( const QString &path,
   187                                     bool enableBackPathCheck, bool disableFind )
   192                                     bool enableBackPathCheck, bool disableFind )
   188 {
   193 {