From fe57cef756abfa9cb894107dfd3442fa8d2d29ec Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 13 Jun 2010 09:20:16 +0000 Subject: [PATCH] Added support for url open event on Mac --- src/qmacapplication.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qmacapplication.cpp b/src/qmacapplication.cpp index a0e03560e..e7fe812ae 100644 --- a/src/qmacapplication.cpp +++ b/src/qmacapplication.cpp @@ -43,6 +43,10 @@ bool QMacApplication::event(QEvent * ev) { case QEvent::FileOpen: { QString path = static_cast(ev)->file(); + if(path.isEmpty()) { + // Get the url instead + path = static_cast(ev)->url(); + } qDebug("Received a mac file open event: %s", qPrintable(path)); emit newFileOpenMacEvent(path); return true;