Check {data,object}_path for empty value.

This commit is contained in:
Kolan Sh 2018-06-21 15:12:05 +03:00
parent 6f3b821b67
commit b6b4721df7
1 changed files with 2 additions and 2 deletions

View File

@ -90,10 +90,10 @@ namespace LAview.Core {
load_data_modules (AppDirs.data_plugins_dir); load_data_modules (AppDirs.data_plugins_dir);
load_object_modules (AppDirs.object_plugins_dir); load_object_modules (AppDirs.object_plugins_dir);
if (File.new_for_path (data_path).query_exists()) if (data_path != "" && File.new_for_path (data_path).query_exists())
load_data_modules (data_path); load_data_modules (data_path);
if (File.new_for_path (object_path).query_exists()) if (object_path != "" && File.new_for_path (object_path).query_exists())
load_object_modules (object_path); load_object_modules (object_path);
load_templates_list (); load_templates_list ();