URI: 
       tqt/channels list: show error in dialog - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit f2242868fa21f51d747bfe2aa225d7a389532ce5
   DIR parent 66817d41f9a61c56775fe1c2f7538ad5ed5c965b
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Mon, 16 Jul 2018 17:45:51 +0200
       
       qt/channels list: show error in dialog
       
       Diffstat:
         M electrum/gui/qt/channels_list.py    |       5 ++---
       
       1 file changed, 2 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py
       t@@ -34,9 +34,8 @@ class ChannelsList(MyTreeWidget):
                def close():
                    suc, msg = self.parent.wallet.lnworker.close_channel(channel_id)
                    if not suc:
       -                print('channel close broadcast failed:', msg)
       -            assert suc # TODO show error message in dialog
       -        menu.addAction(_("Close channel"), close)
       +                self.main_window.show_error('Force-close failed:\n{}'.format(msg))
       +        menu.addAction(_("Force-close channel"), close)
                menu.exec_(self.viewport().mapToGlobal(position))
        
            @QtCore.pyqtSlot(HTLCStateMachine)