diff --git a/mainwindow.cc b/mainwindow.cc index 2cb5d21b..dd3766c7 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -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()