mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 17:18:23 -04:00
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:
parent
974d9e8270
commit
d99abc3b82
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user