]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fixed the signal connection that emits completed in Dolphin's KPart
authorDawit Alemayehu <adawit@kde.org>
Tue, 17 Apr 2012 23:56:34 +0000 (19:56 -0400)
committerDawit Alemayehu <adawit@kde.org>
Tue, 17 Apr 2012 23:57:12 +0000 (19:57 -0400)
src/dolphinpart.cpp
src/dolphinpart.h

index 70d35740f3409fa6076c293a87803a10f3770395..b3b7cd044e2f52edb8b777559a131ddf63cce88f 100644 (file)
@@ -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);
index 7b37fd82350f06cd42397982387d7d2b0adc4b84..0a8ce07bd60f0188d2178561476edfc3127efcc2 100644 (file)
@@ -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);
     /**