Commit 11d7e0f7 authored by Laurent Montel's avatar Laurent Montel 😁

Return error

parent a03aa863
......@@ -148,6 +148,7 @@ void MainWindow::initStorageService()
connect(mStorageManager, SIGNAL(uploadFileDone(QString,QString)), this, SLOT(slotUploadFileDone(QString,QString)));
connect(mStorageManager, SIGNAL(shareLinkDone(QString,QString)), this, SLOT(slotUploadFileDone(QString,QString)));
connect(mStorageManager, SIGNAL(uploadFileFailed(QString,QString)), this, SLOT(slotUploadFileFailed(QString,QString)));
connect(mStorageManager, SIGNAL(actionFailed(QString,QString)), this, SLOT(slotActionFailed(QString,QString)));
}
void MainWindow::slotUploadFileDone(const QString &serviceName, const QString &link)
......@@ -163,6 +164,11 @@ void MainWindow::slotUploadFileFailed(const QString &serviceName, const QString
KMessageBox::error(this, i18n("Error during upload."), i18n("Upload File"));
}
void MainWindow::slotActionFailed(const QString &serviceName, const QString &error)
{
KMessageBox::error(this, i18n("%1 return an error '%2'", serviceName, error), i18n("Error"));
}
void MainWindow::slotCloseTabClicked()
{
const int currentIndex = tabPosts->currentIndex();
......
......@@ -108,6 +108,7 @@ private slots:
void slotUploadFileDone(const QString &serviceName, const QString &filename);
void slotUploadFileFailed(const QString &serviceName, const QString &filename);
void slotActionFailed(const QString &serviceName, const QString &filename);
protected:
void keyPressEvent( QKeyEvent * event );
......
Markdown is supported
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