Testchains: Qt: Simplify network/chain styles

This commit is contained in:
Jorge Timón
2016-10-13 23:24:21 +02:00
parent 052c54ecb0
commit 3bf9d8cac0
4 changed files with 12 additions and 10 deletions

View File

@@ -524,7 +524,7 @@ int GuiMain(int argc, char* argv[])
PaymentServer::ipcParseCommandLine(*node, argc, argv);
#endif
QScopedPointer<const NetworkStyle> networkStyle(NetworkStyle::instantiate(QString::fromStdString(Params().NetworkIDString())));
QScopedPointer<const NetworkStyle> networkStyle(NetworkStyle::instantiate(Params().NetworkIDString()));
assert(!networkStyle.isNull());
// Allow for separate UI settings for testnets
QApplication::setApplicationName(networkStyle->getAppName());