mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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
|
showInfoAction->setDisabled(false); //TODO enable goTo and showInfo (or update) when numPages emited
|
||||||
showDictionaryAction->setDisabled(false);
|
showDictionaryAction->setDisabled(false);
|
||||||
showFlowAction->setDisabled(false);
|
showFlowAction->setDisabled(false);
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
activateWindow();
|
||||||
|
raise();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
void MainWindowViewer::disableActions()
|
void MainWindowViewer::disableActions()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user