Skip to content

Commit 81bdc9a

Browse files
author
Philip Kaufmann
committed
splashscreen: use TestNet() instead of unneeded string processing
1 parent be484db commit 81bdc9a

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)