summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/controller.cpp2
-rw-r--r--src/salmeta.cpp9
2 files changed, 4 insertions, 7 deletions
diff --git a/src/controller.cpp b/src/controller.cpp
index 35d6dae..745f921 100644
--- a/src/controller.cpp
+++ b/src/controller.cpp
@@ -107,7 +107,7 @@ void Controller::connectToDevice()
_address = address;
if (_address.isEmpty()) {
- qDebug() << "Empty address, doing nothing except wasting memory";
+ qDebug() << "Empty address, will do nothing until address is set in config";
return;
}
diff --git a/src/salmeta.cpp b/src/salmeta.cpp
index f782b83..9ccfeae 100644
--- a/src/salmeta.cpp
+++ b/src/salmeta.cpp
@@ -11,9 +11,6 @@
#include "widgetinfomodel.h"
#include "availablewidgetsmodel.h"
-static bool launch_daemon = false;
-static QString settings_key_prefix("/apps/salmeta/watch0");
-
int main(int argc, char *argv[])
{
QGuiApplication *app = SailfishApp::application(argc, argv);
@@ -25,11 +22,12 @@ int main(int argc, char *argv[])
QCommandLineOption opt_daemon("daemon", "start background daemon instead of settings UI");
QCommandLineOption opt_root("root", "dconf path to the settings to use", "/apps/salmeta/watchX", "/apps/salmeta/watch0");
parser.addOption(opt_daemon);
+ parser.addOption(opt_root);
parser.process(*app);
- launch_daemon = parser.isSet(opt_daemon);
- settings_key_prefix = parser.value(opt_root);
+ bool launch_daemon = parser.isSet(opt_daemon);
+ QString settings_key_prefix = parser.value(opt_root);
qmlRegisterUncreatableType<WidgetInfo>("com.javispedro.salmeta", 1, 0, "WidgetInfo",
"Use the models, not this");
@@ -56,4 +54,3 @@ int main(int argc, char *argv[])
return app->exec();
}
-