Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates-src > by-pkgid > b9dfc9446ea00cfd5a19f51a49dc1127 > files > 5

awn-extras-applets-0.4.0-24.fc14.1.src.rpm

=== modified file 'applets/maintained/bandwidth-monitor/awn-bwm.py'
--- applets/maintained/bandwidth-monitor/awn-bwm.py	2010-03-26 17:37:57 +0000
+++ applets/maintained/bandwidth-monitor/awn-bwm.py	2010-05-14 17:03:39 +0000
@@ -579,7 +579,8 @@
                     self.draw_meter(ct, width, self.applet.get_size(),
                         iface, True)
         else:
-            self.draw_meter(ct, width, self.applet.get_size(), self.iface)
+            if self.iface and self.iface in self.netstats.ifaces:
+                self.draw_meter(ct, width, self.applet.get_size(), self.iface)
         if self.iface in self.netstats.ifaces:
             if self.label_control:
                 if self.label_control == 2:
@@ -609,6 +610,7 @@
         else:
             self.upload_ot.props.text = _('No')
             self.download_ot.props.text = _('Device')
+            self.sum_ot.props.text = ''
             self.title_text = _('Please select a valid device')
         if self.border:
             line_width = 2