diff options
author | Garrett Regier <garrettregier@gmail.com> | 2012-10-22 14:40:57 -0700 |
---|---|---|
committer | Garrett Regier <garrettregier@gmail.com> | 2012-10-22 14:48:09 -0700 |
commit | c0a764a6253107744bf0a19955b47b8ac9552d4c (patch) | |
tree | e9f9bb7be32e83ccaa3c6056c6569bb51c3de63f | |
parent | 35b05cfb74ed97fd762bb8c0a0ee88e54fd54e13 (diff) | |
download | baobab-c0a764a6253107744bf0a19955b47b8ac9552d4c.tar.gz |
Fix showing (null) for main volume if hostname is NULL
-rw-r--r-- | src/baobab-location.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/baobab-location.vala b/src/baobab-location.vala index dac2bbe..667641f 100644 --- a/src/baobab-location.vala +++ b/src/baobab-location.vala @@ -116,6 +116,10 @@ namespace Baobab { try { name = get_hostname (); } catch (Error e) { + name = null; + } + + if (name == null) { name = _("Main volume"); } |