Block events when restoring headers

Restoring headers after switching states was triggering
_on_column_toggled(), leading to unexpected results.
This commit is contained in:
RumovZ 2021-05-17 20:07:52 +02:00
parent 02f86ec352
commit 9ceee90942

View File

@ -253,7 +253,9 @@ class Table:
saveHeader(self._view.horizontalHeader(), self._state.config_key_prefix)
def _restore_header(self) -> None:
self._view.horizontalHeader().blockSignals(True)
restoreHeader(self._view.horizontalHeader(), self._state.config_key_prefix)
self._view.horizontalHeader().blockSignals(False)
# Setup