From 2b9b988f9526db809d124255bcaf4f33943d90be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haris=20Gu=C5=A1i=C4=87?= Date: Thu, 13 Jan 2022 20:19:47 +0100 Subject: [PATCH] Fix broken copy on upload (#2246) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix broken copy on upload Signed-off-by: Haris Gušić * Add translation Signed-off-by: Haris Gušić --- src/core/controller.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/controller.cpp b/src/core/controller.cpp index 53305935..60612ae8 100644 --- a/src/core/controller.cpp +++ b/src/core/controller.cpp @@ -610,9 +610,8 @@ void Controller::exportCapture(QPixmap capture, widget, &ImgUploaderBase::uploadOk, [=](const QUrl& url) { if (ConfigHandler().copyAndCloseAfterUpload()) { if (!(tasks & CR::COPY)) { - AbstractLogger::info() - << QObject::tr("URL copied to clipboard."); - QApplication::clipboard()->setText(url.toString()); + FlameshotDaemon::copyToClipboard( + url.toString(), tr("URL copied to clipboard.")); widget->close(); } else { widget->showPostUploadDialog();