Commit 5b85e93f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix signal/slot

parent 3b6209b9
......@@ -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();
}
......
......@@ -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);
......
......@@ -113,7 +113,7 @@ private:
void DoFileDownload(QUrl srcUrl, QUrl saveUrl);
signals:
void addClip(const QUrl&);
void addClip(const QUrl&, const QStringList &);
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment