From ace29d367f25e1c776d7f3259e383134622b3649 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Fri, 12 Apr 2013 18:30:24 +0400 Subject: [PATCH] Mac-specific: Check Accessibility API at start with auto scan popup (issue #129) --- mainwindow.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mainwindow.cc b/mainwindow.cc index 8a96cb87..ebf4aa98 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -728,6 +728,12 @@ MainWindow::MainWindow( Config::Class & cfg_ ): updateStatusLine(); +#ifdef Q_OS_MACX + if( cfg.preferences.startWithScanPopupOn && !AXAPIEnabled() ) + mainStatusBar->showMessage( tr( "Accessibility API is not enabled" ), 10000, + QPixmap( ":/icons/error.png" ) ); +#endif + wasMaximized = isMaximized(); history.setSaveInterval( cfg.preferences.historyStoreInterval );