mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-28 03:44:07 +00:00
fix: clipboard changes isn't ignored
This commit is contained in:
parent
c1902b29c8
commit
a28aec3c9f
|
@ -890,11 +890,18 @@ void MainWindow::clipboardChange( QClipboard::Mode m)
|
||||||
|
|
||||||
if(m == QClipboard::Selection){
|
if(m == QClipboard::Selection){
|
||||||
|
|
||||||
// Multiple ways to stoping a word from showing up when selecting
|
// Multiple ways to stopping a word from showing up when selecting
|
||||||
|
|
||||||
// Explictly disabled on preferences
|
// Explicitly disabled on preferences
|
||||||
if(!cfg.preferences.trackSelectionScan) return;
|
if(!cfg.preferences.trackSelectionScan) return;
|
||||||
|
|
||||||
|
// Explicitly disabled on preferences to ignore gd's own selection
|
||||||
|
|
||||||
|
if( cfg.preferences.ignoreOwnClipboardChanges
|
||||||
|
&& QApplication::clipboard()->ownsSelection() ){
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
// Keyboard Modifier
|
// Keyboard Modifier
|
||||||
if(cfg.preferences.enableScanPopupModifiers &&
|
if(cfg.preferences.enableScanPopupModifiers &&
|
||||||
!KeyboardState::checkModifiersPressed(cfg.preferences.scanPopupModifiers)){
|
!KeyboardState::checkModifiersPressed(cfg.preferences.scanPopupModifiers)){
|
||||||
|
|
Loading…
Reference in a new issue