From: Peter Penz Date: Fri, 12 Dec 2008 22:33:14 +0000 (+0000) Subject: The nasty "100 ms" delay is not necessary anymore, doing a queued call works perfectl... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/a86985b0b46ee97e7705242f3d5648f84425a87b 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 --- 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.