added missing logEntry()
This commit is contained in:
parent
371f5009ce
commit
bea679d726
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user