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:14:00 +0000 |
commit | 38af1ad45ba38a64086b288c6750bcfc0869aeb1 (patch) | |
tree | dca6ff4c8c6e758e6a520b8c4a8afb74c9c2d2c1 | |
parent | aa961e022490bb8e5e99b2e367fb6c6ee3367569 (diff) | |
download | wireshark-38af1ad45ba38a64086b288c6750bcfc0869aeb1.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>
(cherry picked from commit 9601a4f724492b3f9960e1f051360b071997d7d6)
Reviewed-on: https://code.wireshark.org/review/12110
-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) |