Browse Source

Added support for url open event on Mac

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
fe57cef756
  1. 4
      src/qmacapplication.cpp

4
src/qmacapplication.cpp

@ -43,6 +43,10 @@ bool QMacApplication::event(QEvent * ev) { @@ -43,6 +43,10 @@ bool QMacApplication::event(QEvent * ev) {
case QEvent::FileOpen:
{
QString path = static_cast<QFileOpenEvent *>(ev)->file();
if(path.isEmpty()) {
// Get the url instead
path = static_cast<QFileOpenEvent *>(ev)->url();
}
qDebug("Received a mac file open event: %s", qPrintable(path));
emit newFileOpenMacEvent(path);
return true;

Loading…
Cancel
Save