chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07ded1e
)
systemadm: fix link when fragment path is unknown
author
Lennart Poettering
<lennart@poettering.net>
Thu, 20 May 2010 00:37:18 +0000
(
02:37
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 20 May 2010 00:37:18 +0000
(
02:37
+0200)
src/systemadm.vala
patch
|
blob
|
history
diff --git
a/src/systemadm.vala
b/src/systemadm.vala
index 3f1cf9e1138bf9d0acebed3ee4542afd3f57f096..b28759a07604cec90a2c0adc1d9cc837326a364c 100644
(file)
--- 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);
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
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) {
uint64 t = unit.active_enter_timestamp;
if (t > 0) {