aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-10-01 13:23:00 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-10-01 13:23:00 +0200
commit608dacf6895223159bff6a342fdbe581187c8b4b (patch)
tree1f60951e321e12a8a1e9caac9a0e4df81115a593 /src/qt/bitcoin.cpp
parent52e9fe929615d339732c060573b0637c51e353dc (diff)
only install translator when not empty
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r--src/qt/bitcoin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 60a9074204..91881c349a 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -121,7 +121,8 @@ int main(int argc, char *argv[])
QString locale = QLocale::system().name();
QTranslator translator;
translator.load(":/translations/"+locale);
- app.installTranslator(&translator);
+ if (!translator.isEmpty())
+ app.installTranslator(&translator);
QSplashScreen splash(QPixmap(":/images/splash"), 0);
splash.show();