From 2038ab5644598c95472977fce997d58f88f18d8c Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Sat, 22 Jun 2019 16:37:40 +0100 Subject: [PATCH] Bug fix: Start-up directory setting not preserved When the Start-up directory radio buttons were initialized, the setting always reverted to No change. --- src/layout.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/layout.c b/src/layout.c index dc9352a8..fe9a31e0 100644 --- a/src/layout.c +++ b/src/layout.c @@ -2108,18 +2108,30 @@ static void home_path_set_current_cb(GtkWidget *widget, gpointer data) static void startup_path_set_current_cb(GtkWidget *widget, gpointer data) { LayoutConfig *lc = data; + if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) + { + return; + } lc->options.startup_path = STARTUP_PATH_CURRENT; } static void startup_path_set_last_cb(GtkWidget *widget, gpointer data) { LayoutConfig *lc = data; + if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) + { + return; + } lc->options.startup_path = STARTUP_PATH_LAST; } static void startup_path_set_home_cb(GtkWidget *widget, gpointer data) { LayoutConfig *lc = data; + if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) + { + return; + } lc->options.startup_path = STARTUP_PATH_HOME; } -- 2.20.1