diff --git a/source/ubl-settings-repomanager-storage-window.c b/source/ubl-settings-repomanager-storage-window.c index 394400c..50cbdfa 100644 --- a/source/ubl-settings-repomanager-storage-window.c +++ b/source/ubl-settings-repomanager-storage-window.c @@ -53,12 +53,12 @@ void on_storage_open(GtkWidget *self, storage_config_window *window){ int exist_size=0; config_str exist_storages = (config_str)g_hash_table_get_keys_as_array(main_config.storages,&exist_size); for (int i=0;iStatusBox),INSIDE_STORAGE_ERROR_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE); return; } } + yon_char_parsed_free(exist_storages,exist_size); storage_struct *storage = yon_storage_struct_new(); storage->path=dialog->last_success_selection; storage->name = yon_char_new(storage->path); @@ -71,7 +71,6 @@ void on_storage_open(GtkWidget *self, storage_config_window *window){ gtk_combo_box_set_active_id(GTK_COMBO_BOX(window->StoragePathCombo),storage->path); yon_config_register(storage->path,STORAGE_command,""); yon_storage_open_add_repos(storage->path,window); - yon_storage_config_update(window); } } @@ -255,13 +254,11 @@ void on_storage_accept(GtkWidget *self, dictionary *dict){ for (int i=0;istorages_copy,keys[i]),NULL); } g_hash_table_remove_all(window->storages_copy);