summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-04 16:46:18 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-04 16:46:18 +0200
commit256e7837ce8cb30b0c0a8c73306abdffa80365a6 (patch)
tree0246f39a00acb45ec3b3e0c7e99380837f609ab6 /main.cpp
parent6c51fc938bdc764c0426eba6bed2d3a9c37563af (diff)
downloadtapasboard-256e7837ce8cb30b0c0a8c73306abdffa80365a6.tar.gz
tapasboard-256e7837ce8cb30b0c0a8c73306abdffa80365a6.zip
fix a few issues
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 2d23694..5d7a619 100644
--- a/main.cpp
+++ b/main.cpp
@@ -45,7 +45,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
if (!(translator.load(locale, locale_path))) {
// Fallback to English
qDebug() << "Translation not available for" << locale;
- translator.load("en", locale_path);
+ if (!translator.load("en", locale_path)) {
+ qDebug() << "Translations not available in" << locale_path;
+ }
}
app->installTranslator(&translator);
@@ -67,7 +69,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
viewer.engine()->setNetworkAccessManagerFactory(image_nam_factory.data());
viewer.rootContext()->setContextProperty("boardManager", board_manager);
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
- viewer.setMainQmlFile(QLatin1String("qml/tapasboard/main.qml"));
+ viewer.setMainQmlFile(QLatin1String("qml/main.qml"));
viewer.showExpanded();
return app->exec();