-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qt: Don't reset the model when only changing some data
When changing whether names are resolved, absolute time is used, or the timestamp resolution in the Conversation or Endpoints dialogs, don't reset the entire model, only emit a dataChanged signal. When new data arrives, call layoutChanged instead, which is a little lighter than modelReset and will update all the indices. The underlying GArray from from epan/conversation_table.c is always the same object in a tap update. Among other things, this keeps the selected and current rows in the table the same instead of clearing them. For layoutChanged, scroll so that the selected index (if there is one) stays visible. Ping #16925 (this is an easier case than when applying a filter).
- Loading branch information
1 parent
4898852
commit d903f75
Showing
5 changed files
with
130 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters