diff --git a/locale/ubl-settings-repomanager.pot b/locale/ubl-settings-repomanager.pot index 9235aae..191a390 100644 --- a/locale/ubl-settings-repomanager.pot +++ b/locale/ubl-settings-repomanager.pot @@ -570,3 +570,7 @@ msgstr "" #: source/ubl-strings.h:183 msgid "Chosen storage directory is inside of another storage" msgstr "" + +#: source/ubl-strings.h:183 +msgid "Repository were not added" +msgstr "" diff --git a/locale/ubl-settings-repomanager_ru.po b/locale/ubl-settings-repomanager_ru.po index 4cd2087..1b1a622 100644 --- a/locale/ubl-settings-repomanager_ru.po +++ b/locale/ubl-settings-repomanager_ru.po @@ -584,3 +584,7 @@ msgstr "Не подписан" #: source/ubl-strings.h:183 msgid "Chosen storage directory is inside of another storage" msgstr "Выбранный каталог хранилища находится внутри другого хранилища" + +#: source/ubl-strings.h:183 +msgid "Repository were not added" +msgstr "Репозиторий не добавлен" diff --git a/source/ubl-settings-repomanager-storage-window.c b/source/ubl-settings-repomanager-storage-window.c index f53fdb7..140d51d 100644 --- a/source/ubl-settings-repomanager-storage-window.c +++ b/source/ubl-settings-repomanager-storage-window.c @@ -243,6 +243,11 @@ int yon_char_parsed_compare(const void *a, const void *b){ void on_storage_accept(GtkWidget *self, dictionary *dict){ main_window *widgets = yon_dictionary_get_data(dict->first,main_window*); storage_config_window *window = yon_dictionary_get_data(dict->first->next,storage_config_window*); + if (gtk_entry_get_text(GTK_ENTRY(window->AddEntry))){ + yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),UNADDED_REPO_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE); + yon_ubl_status_highlight_incorrect(window->AddRepoButton); + return; + } gtk_widget_destroy(window->MainWindow); int size; config_str keys = (config_str)g_hash_table_get_keys_as_array(window->storages_copy,&size); diff --git a/source/ubl-strings.h b/source/ubl-strings.h index 07ba2b1..bb87678 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -180,4 +180,6 @@ #define SIGNED_LABEL _("Signed") #define UNSIGNED_LABEL _("Unsigned") -#define INSIDE_STORAGE_ERROR_LABEL _("Chosen storage directory is inside of another storage") \ No newline at end of file +#define INSIDE_STORAGE_ERROR_LABEL _("Chosen storage directory is inside of another storage") + +#define UNADDED_REPO_LABEL _("Repository were not added") \ No newline at end of file