Qt: save columns position before freezing

It allows to restore them properly in thaw()

Bug: 11737
Change-Id: Ibee6ee701ab64019ee03666c652c232770b3bb74
Reviewed-on: https://code.wireshark.org/review/11999
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Pascal Quantin 2015-11-21 00:24:30 +01:00 committed by Stig Bjørlykke
parent 45259fb303
commit 17e088ba0e
1 changed files with 1 additions and 0 deletions

View File

@ -763,6 +763,7 @@ void PacketList::captureFileReadFinished()
void PacketList::freeze()
{
setUpdatesEnabled(false);
column_state_ = header()->saveState();
setModel(NULL);
// It looks like GTK+ sends a cursor-changed signal at this point but Qt doesn't
// call selectionChanged.