mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-18 16:42:54 +01:00
Bugfix: Default -uiplatform is not actually the platform this build was compiled on
This commit is contained in:
@@ -311,14 +311,8 @@ BitcoinApplication::BitcoinApplication(int &argc, char **argv):
|
||||
// UI per-platform customization
|
||||
// This must be done inside the BitcoinApplication constructor, or after it, because
|
||||
// PlatformStyle::instantiate requires a QApplication
|
||||
#if defined(Q_OS_MAC)
|
||||
std::string platformName = "macosx";
|
||||
#elif defined(Q_OS_WIN)
|
||||
std::string platformName = "windows";
|
||||
#else
|
||||
std::string platformName = "other";
|
||||
#endif
|
||||
platformName = GetArg("-uiplatform", platformName);
|
||||
std::string platformName;
|
||||
platformName = GetArg("-uiplatform", BitcoinGUI::DEFAULT_UIPLATFORM);
|
||||
platformStyle = PlatformStyle::instantiate(QString::fromStdString(platformName));
|
||||
if (!platformStyle) // Fall back to "other" if specified name not found
|
||||
platformStyle = PlatformStyle::instantiate("other");
|
||||
|
||||
Reference in New Issue
Block a user