summaryrefslogtreecommitdiff
path: root/thunar
diff options
context:
space:
mode:
authorTheo Linkspfeifer <lastonestanding@tutanota.com>2020-04-18 21:35:47 +0200
committerAlexander Schwinn <alexxcons@xfce.org>2020-04-19 10:40:25 +0200
commit1d02123fc3017f2912dd5828c0780aac98f359aa (patch)
treee9148a974f3999e4a8bac49e8beb774c4d93f0fc /thunar
parent302067aae9ad87ea9a40119f9e14b3977dde8944 (diff)
downloadthunar-1d02123fc3017f2912dd5828c0780aac98f359aa.tar.gz
Show URI in tooltip for devices connected via MTP (Bug #16566)
Diffstat (limited to 'thunar')
-rw-r--r--thunar/thunar-shortcuts-model.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c
index 36021d10..0d669b2c 100644
--- a/thunar/thunar-shortcuts-model.c
+++ b/thunar/thunar-shortcuts-model.c
@@ -618,8 +618,10 @@ thunar_shortcuts_model_get_value (GtkTreeModel *tree_model,
if (file != NULL)
{
- if (thunar_g_file_is_root (file))
+ if (g_file_has_uri_scheme (file, "file") && thunar_g_file_is_root (file))
location = g_strdup (_("Browse the file system"));
+ else if (!g_file_has_uri_scheme (file, "file"))
+ location = g_file_get_uri (file);
else
location = thunar_g_file_get_location (file);