mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
scan popup: Fix windows build
This commit is contained in:
parent
0d186dc33d
commit
8232bc208d
|
@ -917,6 +917,7 @@ void MainWindow::clipboardChange( QClipboard::Mode m)
|
|||
{
|
||||
if( scanPopup && enableScanningAction->isChecked() )
|
||||
{
|
||||
#ifdef HAVE_X11
|
||||
if(m == QClipboard::Clipboard){
|
||||
if(!cfg.preferences.trackClipboardScan) return;
|
||||
scanPopup->translateWordFromClipboard();
|
||||
|
@ -931,6 +932,9 @@ void MainWindow::clipboardChange( QClipboard::Mode m)
|
|||
}
|
||||
scanPopup->translateWordFromSelection();
|
||||
}
|
||||
#else
|
||||
scanPopup ->translateWordFromClipboard();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue