Merge pull request #1092 from borgmanJeremy/upload_issue

fixed race condition between notifcation and clipboard
This commit is contained in:
borgmanJeremy
2020-10-22 17:58:45 -05:00
committed by GitHub

View File

@@ -94,9 +94,9 @@ void ImgurUploader::handleReply(QNetworkReply* reply)
QStringLiteral("https://imgur.com/delete/%1")
.arg(data[QStringLiteral("deletehash")].toString()));
if (ConfigHandler().copyAndCloseAfterUploadEnabled()) {
QApplication::clipboard()->setText(m_imageURL.toString());
SystemNotification().sendMessage(
QObject::tr("URL copied to clipboard."));
QApplication::clipboard()->setText(m_imageURL.toString());
close();
} else {
onUploadOk();