summaryrefslogtreecommitdiff
path: root/src/nautilus-window-manage-views.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-window-manage-views.c')
-rw-r--r--src/nautilus-window-manage-views.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 776ecfb0f..59146379a 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -200,7 +200,12 @@ compute_default_title (const char *text_uri)
g_assert (short_name != NULL);
return short_name;
- }
+ } else {
+ gchar *colon_pos = strchr(text_uri, ':');
+ if (colon_pos && colon_pos[1])
+ return g_strdup(colon_pos + 1);
+ }
+
}
return g_strdup(_("Nautilus"));