Fixed issue with copying url. This issue always occurs in places clipboard actions happen ahead of notifications

This commit is contained in:
Jeremy Borgman
2021-03-03 19:27:26 -06:00
committed by borgmanJeremy
parent c5c4cfb7f5
commit 0401bf08ea

View File

@@ -95,9 +95,9 @@ void ImgurUploader::handleReply(QNetworkReply* reply)
history.save(m_pixmap, imageName);
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();