From: Lennart Poettering Date: Thu, 20 May 2010 00:37:18 +0000 (+0200) Subject: systemadm: fix link when fragment path is unknown X-Git-Tag: 0.git+20100605+dfd8ee-1~11^2^2~42 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaf67512d376487a1a30e1cf61d6d33f8e9cb1e3;p=systemd systemadm: fix link when fragment path is unknown --- diff --git a/src/systemadm.vala b/src/systemadm.vala index 3f1cf9e1..b28759a0 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("" + unit.fragment_path + "" ); + + string fp = unit.fragment_path; + if (fp != "") + unit_fragment_path_label.set_markup_or_na("" + fp + "" ); 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) {