# HG changeset patch # User Matti Hamalainen # Date 1352443277 -7200 # Node ID eba5d47edc13803d788002a313c4062be7ea41d8 # Parent f02613ceadcfe5a7dcee3c004dad07c23fae16da Remember the current values when opening the file browsers of config dialog. diff -r f02613ceadcf -r eba5d47edc13 src/xs_config.c --- a/src/xs_config.c Fri Nov 09 08:28:47 2012 +0200 +++ b/src/xs_config.c Fri Nov 09 08:41:17 2012 +0200 @@ -1060,7 +1060,8 @@ xs_stil_fileselector = create_xs_stil_fs(); XS_MUTEX_LOCK(xs_cfg); - gtk_file_selection_set_filename(GTK_FILE_SELECTION(xs_stil_fileselector), xs_cfg.stilDBPath); + gtk_file_selection_set_filename(GTK_FILE_SELECTION(xs_stil_fileselector), + gtk_entry_get_text(GTK_ENTRY(LUW("cfg_stil_dbpath")))); XS_MUTEX_UNLOCK(xs_cfg); gtk_widget_show(xs_stil_fileselector); } @@ -1100,7 +1101,8 @@ xs_hvsc_selector = create_xs_hvsc_fs(); XS_MUTEX_LOCK(xs_cfg); - gtk_file_selection_set_filename(GTK_FILE_SELECTION(xs_hvsc_selector), xs_cfg.hvscPath); + gtk_file_selection_set_filename(GTK_FILE_SELECTION(xs_hvsc_selector), + gtk_entry_get_text(GTK_ENTRY(LUW("cfg_hvsc_path")))); XS_MUTEX_UNLOCK(xs_cfg); gtk_widget_show(xs_hvsc_selector); } @@ -1148,7 +1150,8 @@ xs_rom_selector = create_xs_rom_fs(); XS_MUTEX_LOCK(xs_cfg); - gtk_file_selection_set_filename(GTK_FILE_SELECTION(xs_rom_selector), xs_cfg.romPath); + gtk_file_selection_set_filename(GTK_FILE_SELECTION(xs_rom_selector), + gtk_entry_get_text(GTK_ENTRY(LUW("cfg_rom_path")))); XS_MUTEX_UNLOCK(xs_cfg); gtk_widget_show(xs_rom_selector); }