]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.cpp
The nasty "100 ms" delay is not necessary anymore, doing a queued call works perfectl...
[dolphin.git] / src / dolphinviewcontainer.cpp
index 371eef654182d774d4e9b60f3e7c87c1ac1ebd90..794418eabec2df06bd8ded7cb5466a79fff88625 100644 (file)
@@ -248,7 +248,7 @@ void DolphinViewContainer::slotDirListerCompleted()
     }
 
     updateStatusBar();
-    QTimer::singleShot(100, this, SLOT(restoreContentsPos()));
+    QMetaObject::invokeMethod(this, "restoreContentsPos", Qt::QueuedConnection);
 
     // Enable the 'File'->'Create New...' menu only if the directory
     // supports writing.