disable list filtering when toolbar is closed
This commit is contained in:
@@ -53,6 +53,11 @@ class AddressList(MyTreeWidget):
|
|||||||
def create_toolbar_buttons(self):
|
def create_toolbar_buttons(self):
|
||||||
return QLabel(_("Filter:")), self.change_button, self.used_button
|
return QLabel(_("Filter:")), self.change_button, self.used_button
|
||||||
|
|
||||||
|
def on_hide_toolbar(self):
|
||||||
|
self.show_change = 0
|
||||||
|
self.show_used = 0
|
||||||
|
self.update()
|
||||||
|
|
||||||
def refresh_headers(self):
|
def refresh_headers(self):
|
||||||
headers = [_('Type'), _('Address'), _('Label'), _('Balance')]
|
headers = [_('Type'), _('Address'), _('Label'), _('Balance')]
|
||||||
fx = self.parent.fx
|
fx = self.parent.fx
|
||||||
|
|||||||
@@ -114,6 +114,11 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop):
|
|||||||
self.period_combo.activated.connect(self.on_combo)
|
self.period_combo.activated.connect(self.on_combo)
|
||||||
return self.period_combo, self.start_button, self.end_button
|
return self.period_combo, self.start_button, self.end_button
|
||||||
|
|
||||||
|
def on_hide_toolbar(self):
|
||||||
|
self.start_timestamp = None
|
||||||
|
self.end_timestamp = None
|
||||||
|
self.update()
|
||||||
|
|
||||||
def select_start_date(self):
|
def select_start_date(self):
|
||||||
self.start_timestamp = self.select_date(self.start_button)
|
self.start_timestamp = self.select_date(self.start_button)
|
||||||
self.update()
|
self.update()
|
||||||
|
|||||||
@@ -539,6 +539,8 @@ class MyTreeWidget(QTreeWidget):
|
|||||||
def show_toolbar(self, x):
|
def show_toolbar(self, x):
|
||||||
for b in self.toolbar_buttons:
|
for b in self.toolbar_buttons:
|
||||||
b.setVisible(x)
|
b.setVisible(x)
|
||||||
|
if not x:
|
||||||
|
self.on_hide_toolbar()
|
||||||
|
|
||||||
|
|
||||||
class ButtonsWidget(QWidget):
|
class ButtonsWidget(QWidget):
|
||||||
|
|||||||
Reference in New Issue
Block a user