From a3822c5aa8847ce94f14e3ed2c817224a97c0795 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 10 Jun 2010 12:51:27 +0000 Subject: [PATCH] Added debug output --- src/qmacapplication.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qmacapplication.cpp b/src/qmacapplication.cpp index 485b35a3e..a0e03560e 100644 --- a/src/qmacapplication.cpp +++ b/src/qmacapplication.cpp @@ -28,12 +28,14 @@ * Contact : chris@qbittorrent.org */ +#include #include #include "qmacapplication.h" QMacApplication::QMacApplication(QString appid, int &argc, char** argv) : QtSingleApplication(appid, argc, argv) { + qDebug("Constructing a QMacApplication to receive file open events"); } bool QMacApplication::event(QEvent * ev) { @@ -41,6 +43,7 @@ bool QMacApplication::event(QEvent * ev) { case QEvent::FileOpen: { QString path = static_cast(ev)->file(); + qDebug("Received a mac file open event: %s", qPrintable(path)); emit newFileOpenMacEvent(path); return true; }