From dc6bd8046f35993cae0f3659fd2420e18d0fe472 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 24 Oct 2008 19:52:28 +0000 Subject: Assure that no reloading is done if KDirLister emits a redirection, only change the the URL. Thanks to David Faure and Albert Alstals Cid for the detailed analysis! BUG: 155591 svn path=/trunk/KDE/kdebase/apps/; revision=875554 --- src/dolphinview.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/dolphinview.cpp') diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 9d6038c2c..9e454ea71 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -126,7 +126,7 @@ DolphinView::DolphinView(QWidget* parent, this, SLOT(clearHoverInformation())); connect(m_dirLister, SIGNAL(redirection(KUrl, KUrl)), - this, SLOT(slotRedirection(KUrl, KUrl))); + this, SIGNAL(redirection(KUrl, KUrl))); connect(m_dirLister, SIGNAL(completed()), this, SLOT(restoreCurrentItem())); @@ -1027,13 +1027,6 @@ void DolphinView::slotDeleteFileFinished(KJob* job) } } -void DolphinView::slotRedirection(const KUrl& oldUrl, const KUrl& newUrl) -{ - if (oldUrl == m_controller->url()) { - m_controller->setUrl(newUrl); - } -} - void DolphinView::slotRequestUrlChange(const KUrl& url) { emit requestUrlChange(url); -- cgit v1.3