Fix race condition allowing to run several instances of qBittorrent at the same time

This commit is contained in:
Christophe Dumez
2010-06-09 09:48:14 +00:00
parent 7ab206ebac
commit b9394f2ba2
24 changed files with 1713 additions and 156 deletions

View File

@@ -32,17 +32,17 @@
#ifdef Q_WS_MAC
#include <QApplication>
#include "qtsingleapplication.h"
#include <QStringList>
class QMacApplication : public QApplication
class QMacApplication : public QtSingleApplication
{
Q_OBJECT
public:
explicit QMacApplication(int &argc, char** argv);
explicit QMacApplication(QString appid, int &argc, char** argv);
signals:
void newFileOpenMacEvent(QStringList paths);
void newFileOpenMacEvent(const QString &path);
protected:
bool event(QEvent *);