From e8ed37390577c6cb2961bc5f18466ec48ba5b84d Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 4 Jul 2025 12:18:59 +0600 Subject: [PATCH] Fixed storage configuration window crash --- source/ubl-settings-repomanager-storage-window.c | 2 ++ source/ubl-settings-repomanager.c | 2 +- ubl-settings-repomanager-configuration.glade | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/ubl-settings-repomanager-storage-window.c b/source/ubl-settings-repomanager-storage-window.c index a6062d8..fbf6154 100644 --- a/source/ubl-settings-repomanager-storage-window.c +++ b/source/ubl-settings-repomanager-storage-window.c @@ -243,6 +243,8 @@ storage_config_window *yon_storage_config_window_new(){ } yon_config_register(storage->path,STORAGE_command,yon_char_parsed_to_string(paths,repos_size,",")); } + g_signal_connect(G_OBJECT(window->StoragePathCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box),window->AddEntry); + g_signal_connect(G_OBJECT(window->StoragePathCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box),window->AddRepoButton); g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL); g_signal_connect(G_OBJECT(window->OpenExistingButton),"clicked",G_CALLBACK(on_storage_open),window); g_signal_connect(G_OBJECT(window->CreateNewButton),"clicked",G_CALLBACK(on_storage_create),window); diff --git a/source/ubl-settings-repomanager.c b/source/ubl-settings-repomanager.c index 281cf1c..d86c2c5 100644 --- a/source/ubl-settings-repomanager.c +++ b/source/ubl-settings-repomanager.c @@ -422,9 +422,9 @@ main_window *yon_main_window_complete(main_window *widgets){ int main(int argc, char *argv[]){ setlocale(LC_ALL, ""); textdomain (LocaleName); + yon_ubl_connect_config((_template_config*)&main_config); config_init(); - yon_ubl_connect_config((_template_config*)&main_config); yon_ubl_window_init(TITLE_LABEL,TITLE_INFO_LABEL,LocaleName,CssPath,LocaleName,version_application,WIKI_LINK); config_str unfound = NULL; int size=0; diff --git a/ubl-settings-repomanager-configuration.glade b/ubl-settings-repomanager-configuration.glade index 32f8374..ff552d3 100644 --- a/ubl-settings-repomanager-configuration.glade +++ b/ubl-settings-repomanager-configuration.glade @@ -228,6 +228,7 @@ True + False True @@ -239,6 +240,7 @@ True + False True True Add repository