From 0f1e107d5f842542a188b416736d79ef8d6206fc Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sat, 10 Sep 2022 22:12:47 +0800 Subject: [PATCH] fix: minor code changes related to ctrl+c --- mainwindow.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mainwindow.cc b/mainwindow.cc index 777f1a25..a48282cd 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -933,17 +933,19 @@ void MainWindow::clipboardChange( ) if( scanPopup && cfg.preferences.trackClipboardChanges ) { scanPopup->translateWordFromClipboard(); + return; } //Ctrl+C+C if(cfg.preferences.enableClipboardHotkey) { if(firstCopyKeyTriggered){ + firstCopyKeyTriggered=false; + if(scanPopup) { scanPopup->translateWordFromClipboard(); } - firstCopyKeyTriggered=false; }else{ firstCopyKeyTriggered = true; QTimer::singleShot(500,this,[this](){