commit c05c49a18f3a036d5d3499a87c48d7018841d554
parent c32f75a3139ee043c0428dd33805da3afa58de03
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 28 Sep 2016 08:11:59 +0200
fix fee slider offline bug
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -905,9 +905,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
from electrum.util import fee_levels
i = self.fee_slider.sliderPosition()
tooltip = fee_levels[i]
- dynfee = self.network.dynfee(i)
- if dynfee:
- tooltip += '\n' + self.format_amount(dynfee) + ' ' + self.base_unit() + '/kB'
+ if self.network:
+ dynfee = self.network.dynfee(i)
+ if dynfee:
+ tooltip += '\n' + self.format_amount(dynfee) + ' ' + self.base_unit() + '/kB'
QToolTip.showText(QCursor.pos(), tooltip, self.fee_slider)
def slider_released():
self.config.set_key('fee_level', self.fee_slider.sliderPosition(), False)