From fb49c9b515127285ebe94072ac695c28244416f2 Mon Sep 17 00:00:00 2001 From: houchengqiu Date: Thu, 22 Feb 2024 15:33:17 +0800 Subject: [PATCH] fix: Fixed the issue where the clipboard may have no color value after absorbing color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The color absorber delays exiting by 100ms so that the color values ​​can be stored in the clipboard normally. Log: Fixed the issue where the clipboard may have no color value after absorbing color Bug: https://pms.uniontech.com/bug-view-237007.html --- src/clipboard.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/clipboard.cpp b/src/clipboard.cpp index 6fa2242..6251675 100644 --- a/src/clipboard.cpp +++ b/src/clipboard.cpp @@ -67,5 +67,7 @@ void Clipboard::copyToClipboard(QColor color, QString colorType) clipboard->setText(colorString); // Quit application. - QApplication::quit(); + QTimer::singleShot(100, this,[=](){ + QApplication::quit(); + }); }