mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19: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,7 +932,10 @@ void MainWindow::clipboardChange( QClipboard::Mode m)
|
|||
}
|
||||
scanPopup->translateWordFromSelection();
|
||||
}
|
||||
}
|
||||
#else
|
||||
scanPopup ->translateWordFromClipboard();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::ctrlTabPressed()
|
||||
|
|
Loading…
Reference in a new issue