diff --git a/source/ubl-settings-repomanager-storage-window.c b/source/ubl-settings-repomanager-storage-window.c index 6e486a2..9735258 100644 --- a/source/ubl-settings-repomanager-storage-window.c +++ b/source/ubl-settings-repomanager-storage-window.c @@ -97,9 +97,7 @@ void on_storage_remove(GtkWidget *self, storage_config_window *window){ storage_struct *storage = g_hash_table_lookup(window->storages_copy,storage_target); if (storage){ const char *path = gtk_combo_box_get_active_id(GTK_COMBO_BOX(window->StoragePathCombo)); - if (!config((char*)path)){ yon_config_register((char*)path,STORAGE_command,"-"); - } yon_config_set_status((char*)path,-2); gtk_combo_box_text_remove(GTK_COMBO_BOX_TEXT(window->StoragePathCombo),gtk_combo_box_get_active(GTK_COMBO_BOX(window->StoragePathCombo))); gtk_combo_box_set_active(GTK_COMBO_BOX(window->StoragePathCombo),0); @@ -183,13 +181,15 @@ void yon_storage_remove(char *key, storage_struct *storage,void*){ break; } int size; + if (!yon_char_is_empty(parameter)&&strcmp(parameter,"-")){ config_str parsed = yon_char_parse(parameter,&size,","); - for (int i=0;i