WM: don't search for app-template when its empty

Changing from a loaded app-template back to Default (none set)
would scan paths for a file with no name. Harmless but silly.
This commit is contained in:
Campbell Barton
2017-04-25 17:14:46 +10:00
parent d8661ee2d5
commit 7398b3b71b

View File

@@ -724,7 +724,7 @@ int wm_homefile_read(
if (filepath_startup_override != NULL) { if (filepath_startup_override != NULL) {
/* pass */ /* pass */
} }
else if (app_template_override) { else if (app_template_override && app_template_override[0]) {
app_template = app_template_override; app_template = app_template_override;
} }
else if (!use_factory_settings && U.app_template[0]) { else if (!use_factory_settings && U.app_template[0]) {