Skip to content

Commit 8435f7b

Browse files
committed
Merge pull request #3125 from Diapolo/splash_testnet
splashscreen: use TestNet() instead of unneeded string processing
2 parents be484db + 81bdc9a commit 8435f7b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/qt/splashscreen.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
6666
pixPaint.setFont(QFont(font, 10*fontFactor));
6767
pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight,paddingTop+titleCopyrightVSpace,copyrightText);
6868

69-
// draw testnet string if -testnet is on
70-
if(QApplication::applicationName().contains(QString("-testnet"))) {
71-
// draw copyright stuff
69+
// draw testnet string if testnet is on
70+
if(TestNet()) {
7271
QFont boldFont = QFont(font, 10*fontFactor);
7372
boldFont.setWeight(QFont::Bold);
7473
pixPaint.setFont(boldFont);

0 commit comments

Comments
 (0)