mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Fix race condition allowing to run several instances of qBittorrent at the same time
This commit is contained in:
@@ -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 *);
|
||||
|
||||
Reference in New Issue
Block a user