Fix another logic error

Hooray for late night coding
This commit is contained in:
ArsenArsen 2017-06-13 18:58:24 +02:00
parent dde6fc0786
commit 15d7897b9c

View File

@ -206,9 +206,10 @@ void parseResult(QJsonDocument result, QByteArray data, QString returnPathspec,
if (!url.isEmpty()) { if (!url.isEmpty()) {
QApplication::clipboard()->setText(url); QApplication::clipboard()->setText(url);
notifications::notify("KShare Custom Uploader " + name, "Copied upload link to clipboard!"); notifications::notify("KShare Custom Uploader " + name, "Copied upload link to clipboard!");
} else } else {
notifications::notify("KShare Custom Uploader " + name, "Upload done, but result empty!"); notifications::notify("KShare Custom Uploader " + name, "Upload done, but result empty!");
QApplication::clipboard()->setText(data); QApplication::clipboard()->setText(data);
}
} else { } else {
notifications::notify("KShare Custom Uploader " + name, notifications::notify("KShare Custom Uploader " + name,
"Upload done, but result is not JSON Object! Result in clipboard."); "Upload done, but result is not JSON Object! Result in clipboard.");