From a86985b0b46ee97e7705242f3d5648f84425a87b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 12 Dec 2008 22:33:14 +0000 Subject: [PATCH] The nasty "100 ms" delay is not necessary anymore, doing a queued call works perfectly to restore the contents position of a view. CCMAIL: kdedevel@etotheipiplusone.com svn path=/trunk/KDE/kdebase/apps/; revision=896237 --- src/dolphinviewcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 371eef654..794418eab 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -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. -- 2.47.3