diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2015-11-24 20:06:00 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-11-24 19:13:45 +0000 |
commit | 9601a4f724492b3f9960e1f051360b071997d7d6 (patch) | |
tree | edf009be7f8d260966d4139b589327c0d5cb1401 /ui/qt/packet_list.cpp | |
parent | 8c46a728fed52b0432a234274cc3e7a6fcadaf6d (diff) | |
download | wireshark-9601a4f724492b3f9960e1f051360b071997d7d6.tar.gz |
Qt: Save preferences when hide/show columns
To preserve the hide/show column settings between switching profiles
the settings have to be saved.
Change-Id: I6f72b2980be149676e1c1099a604c8c6d0d995bf
Reviewed-on: https://code.wireshark.org/review/12109
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/packet_list.cpp')
-rw-r--r-- | ui/qt/packet_list.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp index 6db72f994f..aac241adda 100644 --- a/ui/qt/packet_list.cpp +++ b/ui/qt/packet_list.cpp @@ -1192,6 +1192,9 @@ void PacketList::headerMenuTriggered() case caHideColumn: set_column_visible(header_ctx_column_, FALSE); hideColumn(header_ctx_column_); + if (!prefs.gui_use_pref_save) { + prefs_main_write(); + } break; case caRemoveColumn: { @@ -1222,6 +1225,9 @@ void PacketList::columnVisibilityTriggered() set_column_visible(ha->data().toInt(), ha->isChecked()); setColumnVisibility(); + if (!prefs.gui_use_pref_save) { + prefs_main_write(); + } } void PacketList::sectionResized(int col, int, int new_width) |