diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-20 02:37:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-20 02:37:18 +0200 |
commit | eaf67512d376487a1a30e1cf61d6d33f8e9cb1e3 (patch) | |
tree | 86184fe427fc2f12e6ac6593e70c17bc2212a292 /src/systemadm.vala | |
parent | 07ded1e8ba9c47f02d2590f1a8e8aedbfe4a5bff (diff) |
systemadm: fix link when fragment path is unknown
Diffstat (limited to 'src/systemadm.vala')
-rw-r--r-- | src/systemadm.vala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/systemadm.vala b/src/systemadm.vala index 3f1cf9e113..b28759a076 100644 --- a/src/systemadm.vala +++ b/src/systemadm.vala @@ -502,10 +502,12 @@ public class MainWindow : Window { unit_load_state_label.set_text_or_na(unit.load_state); unit_active_state_label.set_text_or_na(unit.active_state); unit_sub_state_label.set_text_or_na(unit.sub_state); - if (unit.fragment_path != null) - unit_fragment_path_label.set_markup_or_na("<a href=\"file://" + unit.fragment_path +"\">" + unit.fragment_path + "</a>" ); + + string fp = unit.fragment_path; + if (fp != "") + unit_fragment_path_label.set_markup_or_na("<a href=\"file://" + fp +"\">" + fp + "</a>" ); else - unit_fragment_path_label.set_markup_or_na(null); + unit_fragment_path_label.set_text_or_na(); uint64 t = unit.active_enter_timestamp; if (t > 0) { |