mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 12:15:43 +08:00
Bugfix: SingleApplication passing a copy of argc instead of reference
QApplication uses a reference of argc so it could modify it's value when it substitutes known arguments for example. Thanks to @Chocobozzz for reporting the issue. https://github.com/itay-grudev/SingleApplication/issues/1
This commit is contained in:
parent
f170f1c73a
commit
d33b4c1c61
@ -7,7 +7,7 @@
|
||||
* @param argc
|
||||
* @param argv
|
||||
*/
|
||||
SingleApplication::SingleApplication(int argc, char *argv[])
|
||||
SingleApplication::SingleApplication(int &argc, char *argv[])
|
||||
: QApplication(argc, argv)
|
||||
{
|
||||
QString serverName = QApplication::organizationName() + QApplication::applicationName();
|
||||
|
@ -13,7 +13,7 @@ class SingleApplication : public QApplication
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SingleApplication(int, char *[]);
|
||||
explicit SingleApplication(int&, char *[]);
|
||||
~SingleApplication();
|
||||
|
||||
signals:
|
||||
|
Loading…
Reference in New Issue
Block a user