summary refs log tree commit diff stats
path: root/src/fe-gtk/search.c
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2013-05-01 12:20:50 -0700
committerRichardHitt <rbh00@netcom.com>2013-05-01 12:25:29 -0700
commit7403dfa9aa9d31988ed671342dd7c500d67b3e40 (patch)
tree32b0228171cf7f2804ef4d5d0d54bba2a4aa83d5 /src/fe-gtk/search.c
parentb08d9cfb567ad6944182a8f09015f1b648bb2ac6 (diff)
Do save_config() on Search-window checkbox change
	#570
Diffstat (limited to 'src/fe-gtk/search.c')
-rw-r--r--src/fe-gtk/search.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fe-gtk/search.c b/src/fe-gtk/search.c
index 49c30a14..44cbf3a0 100644
--- a/src/fe-gtk/search.c
+++ b/src/fe-gtk/search.c
@@ -26,6 +26,7 @@
 #include "../common/fe.h"
 #include "../common/util.h"
 #include "../common/hexchatc.h"
+#include "../common/cfgfiles.h"
 #include "gtkutil.h"
 #include "xtext.h"
 #include "maingui.h"
@@ -111,24 +112,28 @@ static void
 search_caseign_cb (GtkToggleButton * but, session * sess)
 {
 	prefs.hex_text_search_case_match = (but->active)? 1: 0;
+	save_config();
 }
 
 static void
 search_dirbwd_cb (GtkToggleButton * but, session * sess)
 {
 	prefs.hex_text_search_backward = (but->active)? 1: 0;
+	save_config();
 }
 
 static void
 search_regexp_cb (GtkToggleButton * but, session * sess)
 {
 	prefs.hex_text_search_regexp = (but->active)? 1: 0;
+	save_config();
 }
 
 static void
 search_highlight_cb (GtkToggleButton * but, session * sess)
 {
 	prefs.hex_text_search_highlight_all = (but->active)? 1: 0;
+	save_config();
 	search_search (sess, NULL);
 }