Skip to content

Commit a660ed1

Browse files
theunisipa
authored andcommitted
qt: Work (don't crash) with -segnet
1 parent d0f6057 commit a660ed1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/qt/guiconstants.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ static const int MAX_URI_LENGTH = 255;
5050
#define QAPP_ORG_DOMAIN "bitcoin.org"
5151
#define QAPP_APP_NAME_DEFAULT "Bitcoin-Qt"
5252
#define QAPP_APP_NAME_TESTNET "Bitcoin-Qt-testnet"
53+
#define QAPP_APP_NAME_SEGNET "Bitcoin-Qt-segnet"
5354

5455
#endif // BITCOIN_QT_GUICONSTANTS_H

src/qt/networkstyle.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ static const struct {
1717
} network_styles[] = {
1818
{"main", QAPP_APP_NAME_DEFAULT, 0, 0, ""},
1919
{"test", QAPP_APP_NAME_TESTNET, 70, 30, QT_TRANSLATE_NOOP("SplashScreen", "[testnet]")},
20+
{"segnet", QAPP_APP_NAME_SEGNET, 30, 30, QT_TRANSLATE_NOOP("SplashScreen", "[segnet]")},
2021
{"regtest", QAPP_APP_NAME_TESTNET, 160, 30, "[regtest]"}
2122
};
2223
static const unsigned network_styles_count = sizeof(network_styles)/sizeof(*network_styles);

0 commit comments

Comments
 (0)