From 15d7897b9c41c198beea13ed4155e9f81f315e41 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Tue, 13 Jun 2017 18:58:24 +0200 Subject: [PATCH] Fix another logic error Hooray for late night coding --- uploaders/customuploader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uploaders/customuploader.cpp b/uploaders/customuploader.cpp index fcf435b..08ffe2c 100644 --- a/uploaders/customuploader.cpp +++ b/uploaders/customuploader.cpp @@ -206,9 +206,10 @@ void parseResult(QJsonDocument result, QByteArray data, QString returnPathspec, if (!url.isEmpty()) { QApplication::clipboard()->setText(url); notifications::notify("KShare Custom Uploader " + name, "Copied upload link to clipboard!"); - } else + } else { notifications::notify("KShare Custom Uploader " + name, "Upload done, but result empty!"); - QApplication::clipboard()->setText(data); + QApplication::clipboard()->setText(data); + } } else { notifications::notify("KShare Custom Uploader " + name, "Upload done, but result is not JSON Object! Result in clipboard.");