From e300141ff8a1f9e325effc81d2c0cbac0789dbaa Mon Sep 17 00:00:00 2001 From: borgmanJeremy <46930769+borgmanJeremy@users.noreply.github.com> Date: Tue, 9 Nov 2021 17:54:00 -0600 Subject: [PATCH] Fixed race condition with clipboard and system notification on upload (#2053) --- src/core/capturerequest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/capturerequest.cpp b/src/core/capturerequest.cpp index 37813aa1..a639c63e 100644 --- a/src/core/capturerequest.cpp +++ b/src/core/capturerequest.cpp @@ -180,9 +180,10 @@ void CaptureRequest::exportCapture(const QPixmap& capture) widget, &ImgurUploader::uploadOk, [widget, tasks](const QUrl& url) { if (ConfigHandler().copyAndCloseAfterUpload()) { if (!(tasks & COPY)) { - QApplication::clipboard()->setText(url.toString()); SystemNotification().sendMessage( QObject::tr("URL copied to clipboard.")); + + QApplication::clipboard()->setText(url.toString()); widget->close(); } else { widget->showPostUploadDialog();