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").
This commit is contained in:
Siegfried-Angel Gevatter Pujals 2009-08-09 19:19:07 +02:00
parent cc83aee401
commit 1f864fba7f

View File

@ -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);
}