summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xlib/network/netcenter.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index de0753b..db4d9fc 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
- draknetcenter:
o use new status icons
o add Quit button
+ o do not show markup instead of interface name if interface does not exist (#33241)
0.14:
- draknetcenter:
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm
index c779bf8..242e8f7 100755
--- a/lib/network/netcenter.pm
+++ b/lib/network/netcenter.pm
@@ -64,7 +64,7 @@ sub main {
0, gtknew('Label', padding => [ 5, 0 ]),
1, gtknew('Label', ellipsize => 'end', alignment => [ 0, 0 ], text_markup => '<b>' . $_->get_description . '</b>'),
0, gtknew('Label', padding => [ 2, 0 ]),
- 0, $cmanager->{gui}{labels}{interface} = gtknew('Label', alignment => [ 0, 0 ], text_markup => '<b>' . $_->get_interface . '</b>'),
+ 0, $cmanager->{gui}{labels}{interface} = gtknew('Label', alignment => [ 0, 0 ], text_markup => $_->get_interface ? '<b>' . $_->get_interface . '</b>' : ""),
]);
my $content = gtknew('HBox', children => [
0, gtknew('Label', padding => [ 5, 0 ]),