added missing logEntry()

This commit is contained in:
Niklas 2019-05-14 16:11:45 +02:00
parent 371f5009ce
commit bea679d726

View File

@ -96,6 +96,7 @@ void ImgurUploader::handleSend(QString auth, QString mime, QByteArray byteArray,
notifications::notify(tr("KShare imgur Uploader"), tr("Uploaded to imgur!"));
playSuccessSound();
} else {
ioutils::addLogEntry(r, data, result, filename);
notifications::notify(tr("KShare imgur Uploader "),
QString(tr("Failed upload! imgur said: HTTP %1: %2"))
.arg(r->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt())
@ -127,4 +128,4 @@ void ImgurUploader::playErrorSound() {
if(mediaPlayer->error() != QMediaPlayer::NoError && mediaPlayer->error() != QMediaPlayer::ServiceMissingError)
notifications::notify(QString::number(mediaPlayer->error()), mediaPlayer->errorString(), QSystemTrayIcon::Warning);
}
}