scan popup: Fix windows build

This commit is contained in:
shenlebantongying 2022-11-19 21:54:22 -05:00
parent 0d186dc33d
commit 8232bc208d

View file

@ -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
}
}