summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-12-08 08:14:40 (GMT)
committerMontel Laurent <montel@kde.org>2016-12-08 08:14:40 (GMT)
commit5b85e93f400f9195c120de117f4bdd61d23c4b12 (patch)
tree1018594d5b736782ebe78705ee7b5a5002652f15
parent3b6209b94045db76e3f18e29237b86c6a054401c (diff)
Fix signal/slot
-rw-r--r--src/mainwindow.cpp2
-rw-r--r--src/utils/resourcewidget.cpp4
-rw-r--r--src/utils/resourcewidget.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index bcbca7f..203811e 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3656,7 +3656,7 @@ void MainWindow::slotDownloadResources()
else
currentFolder = KdenliveSettings::defaultprojectfolder();
ResourceWidget *d = new ResourceWidget(currentFolder);
- connect(d, SIGNAL(addClip(QUrl)), this, SLOT(slotAddProjectClip(QUrl)));
+ connect(d, SIGNAL(addClip(QUrl,QStringList)), this, SLOT(slotAddProjectClip(QUrl,QStringList)));
d->show();
}
diff --git a/src/utils/resourcewidget.cpp b/src/utils/resourcewidget.cpp
index 278949c..f2db34f 100644
--- a/src/utils/resourcewidget.cpp
+++ b/src/utils/resourcewidget.cpp
@@ -509,7 +509,7 @@ void ResourceWidget::slotGotFile(KJob *job)
const QUrl filePath = copyJob->destUrl();
KMessageBox::information(this,i18n( "Resource saved to ") + filePath.path(), i18n("Data Imported"));
- emit addClip(filePath);
+ emit addClip(filePath, QStringList());
}
}
@@ -849,7 +849,7 @@ void ResourceWidget::DownloadRequestFinished(QNetworkReply* reply)
file.close();
KMessageBox::information(this, i18n("Resource saved to ") + mSaveLocation, i18n("Data Imported"));
- emit addClip(QUrl(mSaveLocation));// MainWindow::slotDownloadResources() links this signal to MainWindow::slotAddProjectClip
+ emit addClip(QUrl(mSaveLocation), QStringList());// MainWindow::slotDownloadResources() links this signal to MainWindow::slotAddProjectClip
m_desc.append("<br>" + i18n( "Saved file to") + "<br>");
m_desc.append(mSaveLocation);
diff --git a/src/utils/resourcewidget.h b/src/utils/resourcewidget.h
index 8907d5c..b8472ce 100644
--- a/src/utils/resourcewidget.h
+++ b/src/utils/resourcewidget.h
@@ -113,7 +113,7 @@ private:
void DoFileDownload(QUrl srcUrl, QUrl saveUrl);
signals:
- void addClip(const QUrl&);
+ void addClip(const QUrl&, const QStringList &);
};