diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py index 697947abf..e8f1434a2 100644 --- a/electrum/gui/qt/channels_list.py +++ b/electrum/gui/qt/channels_list.py @@ -209,7 +209,7 @@ class ChannelsList(MyTreeView): channel_id2 = idx2.sibling(idx2.row(), self.Columns.NODE_ALIAS).data(ROLE_CHANNEL_ID) chan1 = self.lnworker.channels.get(channel_id1) chan2 = self.lnworker.channels.get(channel_id2) - if chan1 and chan2: + if chan1 and chan2 and (self.lnworker.channel_db or chan1.node_id != chan2.node_id): menu.addAction(_("Rebalance"), lambda: self.parent.rebalance_dialog(chan1, chan2)) menu.exec_(self.viewport().mapToGlobal(position)) return