fixed race condition between notifcation and clipboard
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user