[gnome-maps] Show sendToDialog even if browser has no icon
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Show sendToDialog even if browser has no icon
- Date: Sat, 12 Dec 2015 15:29:18 +0000 (UTC)
commit 22191127000b1823939c8c8b7edaecb9c8bb20a5
Author: Hashem Nasarat <hashem riseup net>
Date: Fri Dec 11 18:53:23 2015 -0500
Show sendToDialog even if browser has no icon
My default browser doesn't have an icon.
get_icon() can return null and this raised an unhandled error which
prevented the sendToDialog from showing.
https://bugzilla.gnome.org/show_bug.cgi?id=759379
src/sendToDialog.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/sendToDialog.js b/src/sendToDialog.js
index 0f140b2..5f91973 100644
--- a/src/sendToDialog.js
+++ b/src/sendToDialog.js
@@ -110,7 +110,11 @@ const SendToDialog = new Lang.Class({
this._browserRow.hide();
} else {
this._browserLabel.label = browserInfo.get_name();
- this._browserIcon.icon_name = browserInfo.get_icon().to_string();
+ try {
+ this._browserIcon.icon_name = browserInfo.get_icon().to_string();
+ } catch(e) {
+ Utils.debug('failed to get browser icon: %s'.format(e.message));
+ }
}
return appWeather || appClocks || browserInfo;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]