Commit 0635dc3e authored by Paolo Bacchilega's avatar Paolo Bacchilega

image wall: use the browser location only if it's a real directory

parent ca219a6b
......@@ -260,7 +260,7 @@ dlg_image_wall (GthBrowser *browser,
/* Set widgets data. */
location = gth_browser_get_location (data->browser);
if (location != NULL)
if ((location != NULL) && g_file_has_uri_scheme (location, "file"))
s_value = g_file_get_uri (location);
s_value = _g_settings_get_uri (data->settings, PREF_IMAGE_WALL_DESTINATION);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment