1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Merge pull request #7272 from vit9696/patch-1

Fix macOS window restoration after using hide icon
This commit is contained in:
sledgehammer999 2017-08-15 21:13:58 +03:00 committed by GitHub
commit f98edcab5c

View File

@ -1285,14 +1285,11 @@ static bool dockClickHandler(id self, SEL cmd, ...)
Q_UNUSED(self) Q_UNUSED(self)
Q_UNUSED(cmd) Q_UNUSED(cmd)
qDebug("Dock icon clicked!");
if (dockMainWindowHandle && !dockMainWindowHandle->isVisible()) { if (dockMainWindowHandle && !dockMainWindowHandle->isVisible()) {
dockMainWindowHandle->activate(); dockMainWindowHandle->activate();
} }
// Return NO (false) to suppress the default OS X actions return true;
return false;
} }
void MainWindow::setupDockClickHandler() void MainWindow::setupDockClickHandler()