Make main window active and top when open files on Mac platform.

Convenient when drag and drop onto dock icon.
This commit is contained in:
Daisuke Cato 2016-10-13 02:45:17 +09:00
parent 974d9e8270
commit d99abc3b82

View File

@ -926,6 +926,11 @@ void MainWindowViewer::enableActions()
showInfoAction->setDisabled(false); //TODO enable goTo and showInfo (or update) when numPages emited
showDictionaryAction->setDisabled(false);
showFlowAction->setDisabled(false);
#ifdef Q_OS_MAC
activateWindow();
raise();
#endif
}
void MainWindowViewer::disableActions()
{