From 1f864fba7fdd1453bf1d91b45e8660d84736ee25 Mon Sep 17 00:00:00 2001 From: Siegfried-Angel Gevatter Pujals Date: Sun, 9 Aug 2009 19:19:07 +0200 Subject: [PATCH] Show bookmarks with spaces in the name correctly Take everything in the ~/.gtk-bookmark lines after the URI as label, not only the first word. (eg. if there's a line like "file:///home/rainct/Ubuntu%20One Ubuntu One", now "Ubuntu One" is taken as the label, instead of only "Ubuntu"). --- js/ui/places.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/places.js b/js/ui/places.js index d9bdf6808..0c64e9028 100644 --- a/js/ui/places.js +++ b/js/ui/places.js @@ -131,7 +131,7 @@ Places.prototype = { continue; let label = null; if (components.length > 1) - label = components[1]; + label = components.slice(1).join(' '); bookmarksToLabel[bookmark] = label; bookmarksOrder.push(bookmark); }