mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
bitcoin: use static QApplication:: instead of app.
This commit is contained in:
parent
99ae01234d
commit
e9abeac204
@ -140,12 +140,12 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Application identification (must be set before OptionsModel is initialized,
|
// Application identification (must be set before OptionsModel is initialized,
|
||||||
// as it is used to locate QSettings)
|
// as it is used to locate QSettings)
|
||||||
app.setOrganizationName("Bitcoin");
|
QApplication::setOrganizationName("Bitcoin");
|
||||||
app.setOrganizationDomain("bitcoin.org");
|
QApplication::setOrganizationDomain("bitcoin.org");
|
||||||
if(GetBoolArg("-testnet")) // Separate UI settings for testnet
|
if(GetBoolArg("-testnet")) // Separate UI settings for testnet
|
||||||
app.setApplicationName("Bitcoin-Qt-testnet");
|
QApplication::setApplicationName("Bitcoin-Qt-testnet");
|
||||||
else
|
else
|
||||||
app.setApplicationName("Bitcoin-Qt");
|
QApplication::setApplicationName("Bitcoin-Qt");
|
||||||
|
|
||||||
// ... then GUI settings:
|
// ... then GUI settings:
|
||||||
OptionsModel optionsModel;
|
OptionsModel optionsModel;
|
||||||
@ -201,7 +201,6 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.processEvents();
|
app.processEvents();
|
||||||
|
|
||||||
app.setQuitOnLastWindowClosed(false);
|
app.setQuitOnLastWindowClosed(false);
|
||||||
|
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user