From: Dawit Alemayehu Date: Tue, 17 Apr 2012 23:56:34 +0000 (-0400) Subject: Fixed the signal connection that emits completed in Dolphin's KPart X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/47d7cdffdd2d2c04067a5088eaeff67add53dde3 Fixed the signal connection that emits completed in Dolphin's KPart --- 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); /**