From ec136defa8eb87c816ba5f3ea3cbfd9e61150ee6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 22 Apr 2016 06:57:08 -0700 Subject: [PATCH] QML UI: set the default local repo to load This will allow the user to open a repo that was stored in no cloud mode. Signed-off-by: Dirk Hohndel --- subsurface-mobile-main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp index fc570a96b..e18d40794 100644 --- a/subsurface-mobile-main.cpp +++ b/subsurface-mobile-main.cpp @@ -48,6 +48,9 @@ int main(int argc, char **argv) taglist_init_global(); init_ui(); loadPreferences(); + if (prefs.default_file_behavior == LOCAL_DEFAULT_FILE) + set_filename(prefs.default_filename, true); + // some hard coded settings prefs.animation_speed = 0; // we render the profile to pixmap, no animations