forked from osmocom/wireshark
Save preferences when adding and removing columns in the main window.
svn path=/trunk/; revision=31087
This commit is contained in:
parent
43de696a6c
commit
2e06779073
|
@ -155,6 +155,7 @@
|
|||
#include "gtk/capture_if_dlg.h"
|
||||
#include "gtk/tap_dfilter_dlg.h"
|
||||
#include "gtk/prefs_column.h"
|
||||
#include "gtk/prefs_dlg.h"
|
||||
|
||||
#ifdef HAVE_LIBPCAP
|
||||
#include "../image/wsicon16.xpm"
|
||||
|
@ -809,6 +810,9 @@ void apply_as_custom_column_cb (GtkWidget *widget _U_, gpointer data _U_)
|
|||
#else
|
||||
packet_list_recreate ();
|
||||
#endif
|
||||
if (!prefs.gui_use_pref_save) {
|
||||
prefs_main_write();
|
||||
}
|
||||
cfile.cinfo.columns_changed = FALSE; /* Reset value */
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
#include "gtk/packet_win.h"
|
||||
#include "gtk/main.h"
|
||||
#include "gtk/prefs_column.h"
|
||||
#include "gtk/prefs_dlg.h"
|
||||
#include "gtk/dlg_utils.h"
|
||||
|
||||
#define COLUMN_WIDTH_MIN 40
|
||||
|
@ -181,6 +182,10 @@ col_title_change_ok (GtkWidget *w, gpointer parent_w)
|
|||
gtk_tree_view_column_set_title(col, title);
|
||||
column_prefs_rename(col_id, title);
|
||||
|
||||
if (!prefs.gui_use_pref_save) {
|
||||
prefs_main_write();
|
||||
}
|
||||
|
||||
window_destroy(GTK_WIDGET(parent_w));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue