From 47d7cdffdd2d2c04067a5088eaeff67add53dde3 Mon Sep 17 00:00:00 2001 From: Dawit Alemayehu Date: Tue, 17 Apr 2012 19:56:34 -0400 Subject: [PATCH] Fixed the signal connection that emits completed in Dolphin's KPart --- src/dolphinpart.cpp | 8 +------- src/dolphinpart.h | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index 70d35740f..b3b7cd044 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -69,7 +69,7 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantL m_view->setTabsForFilesEnabled(true); setWidget(m_view); - connect(m_view, SIGNAL(finishedDirLoading(KUrl)), this, SLOT(slotCompleted(KUrl))); + connect(m_view, SIGNAL(directoryLoadingCompleted()), this, SIGNAL(completed())); connect(m_view, SIGNAL(directoryLoadingProgress(int)), this, SLOT(updateProgress(int))); connect(m_view, SIGNAL(errorMessage(QString)), this, SLOT(slotErrorMessage(QString))); @@ -299,12 +299,6 @@ bool DolphinPart::openUrl(const KUrl& url) return true; } -void DolphinPart::slotCompleted(const KUrl& url) -{ - Q_UNUSED(url) - emit completed(); -} - void DolphinPart::slotMessage(const QString& msg) { emit setStatusBarText(msg); diff --git a/src/dolphinpart.h b/src/dolphinpart.h index 7b37fd823..0a8ce07bd 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -117,7 +117,6 @@ Q_SIGNALS: void aboutToOpenURL(); private Q_SLOTS: - void slotCompleted(const KUrl& url); void slotMessage(const QString& msg); void slotErrorMessage(const QString& msg); /** -- 2.47.3