1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-13 10:32:11 +01:00

Mac: Open new window when clicking on Dock icon

Closes #1517
This commit is contained in:
David Rosca 2014-11-08 10:21:01 +01:00
parent 478b5ddb84
commit 476bd93f55

View File

@ -1117,11 +1117,13 @@ RegisterQAppAssociation* MainApplication::associationManager()
bool MainApplication::event(QEvent* e)
{
switch (e->type()) {
case QEvent::FileOpen: {
QString fileName = static_cast<QFileOpenEvent*>(e)->file();
addNewTab(QUrl::fromLocalFile(fileName));
case QEvent::FileOpen:
addNewTab(QUrl::fromLocalFile(static_cast<QFileOpenEvent*>(e)->file()));
return true;
}
case QEvent::ApplicationActivate:
if (m_windows.isEmpty())
createWindow(Qz::BW_NewWindow);
break;
default: