portalHelper: Fix runtime warning

When there is no URI, then the title should be empty, not null:
Gjs-WARNING **: JS ERROR: Error: Argument 'str' (type utf8) may not be null

https://bugzilla.gnome.org/show_bug.cgi?id=778552
This commit is contained in:
Bastien Nocera 2017-02-13 11:10:19 +01:00
parent 304b68eff9
commit 98cdd44543

View File

@ -176,7 +176,7 @@ const PortalWindow = new Lang.Class({
if (uri)
this._headerBar.setSubtitle(GLib.uri_unescape_string(uri, null));
else
this._headerBar.setSubtitle(null);
this._headerBar.setSubtitle('');
},
refresh: function() {