diff options
Diffstat (limited to 'ui/qt/packet_list_model.cpp')
-rw-r--r-- | ui/qt/packet_list_model.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/qt/packet_list_model.cpp b/ui/qt/packet_list_model.cpp index 80563be940..8a3e443d52 100644 --- a/ui/qt/packet_list_model.cpp +++ b/ui/qt/packet_list_model.cpp @@ -110,22 +110,21 @@ void PacketListModel::clear() { void PacketListModel::resetColumns() { - beginResetModel(); if (cap_file_) { PacketListRecord::resetColumns(&cap_file_->cinfo); } - endResetModel(); + dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1)); + headerDataChanged(Qt::Horizontal, 0, columnCount() - 1); } void PacketListModel::resetColorized() { PacketListRecord *record; - beginResetModel(); foreach (record, physical_rows_) { record->resetColorized(); } - endResetModel(); + dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1)); } void PacketListModel::setMonospaceFont(const QFont &mono_font, int row_height) |