Block events when restoring headers
Restoring headers after switching states was triggering _on_column_toggled(), leading to unexpected results.
This commit is contained in:
parent
02f86ec352
commit
9ceee90942
@ -253,7 +253,9 @@ class Table:
|
|||||||
saveHeader(self._view.horizontalHeader(), self._state.config_key_prefix)
|
saveHeader(self._view.horizontalHeader(), self._state.config_key_prefix)
|
||||||
|
|
||||||
def _restore_header(self) -> None:
|
def _restore_header(self) -> None:
|
||||||
|
self._view.horizontalHeader().blockSignals(True)
|
||||||
restoreHeader(self._view.horizontalHeader(), self._state.config_key_prefix)
|
restoreHeader(self._view.horizontalHeader(), self._state.config_key_prefix)
|
||||||
|
self._view.horizontalHeader().blockSignals(False)
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user