From 368421f198886088ed8714c2273e4fa07dfcee67 Mon Sep 17 00:00:00 2001 From: Jeremy Borgman Date: Thu, 22 Oct 2020 17:56:25 -0500 Subject: [PATCH] fixed race condition between notifcation and clipboard --- src/tools/imgur/imguruploader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/imgur/imguruploader.cpp b/src/tools/imgur/imguruploader.cpp index 26e3f149..bbfa54c9 100644 --- a/src/tools/imgur/imguruploader.cpp +++ b/src/tools/imgur/imguruploader.cpp @@ -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();