From 2f79ff80937708100b1f9946c42efec24d3d2b13 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Mon, 31 Jul 2023 12:57:41 +0600 Subject: [PATCH] fix --- source/view_temp_u_g_p.c | 3 +++ ubl-settings-diskquota_ru.po | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/source/view_temp_u_g_p.c b/source/view_temp_u_g_p.c index 42d88e9..7ef9f6e 100644 --- a/source/view_temp_u_g_p.c +++ b/source/view_temp_u_g_p.c @@ -530,6 +530,9 @@ int check_save() { int menu_id = 0; if (strcmp(set_add_edit, "add")==0) { menu_id = gtk_combo_box_get_active(GTK_COMBO_BOX(temp_widgets->UserDeviceCombo)); + if (menu_id == -1) { + show_warning_no_fill(_("To save, you need to select a disk")); + } } if (!active1 && !active2 && !active3 && !active4) { show_warning_no_fill(_("The volume and files fields must have at least one value")); diff --git a/ubl-settings-diskquota_ru.po b/ubl-settings-diskquota_ru.po index 5ab22c1..5c58a43 100644 --- a/ubl-settings-diskquota_ru.po +++ b/ubl-settings-diskquota_ru.po @@ -440,4 +440,7 @@ msgid "The path does not match the specified disk" msgstr "Путь не соответствует указанному диску" msgid "Project name mandatory field" -msgstr "Имя проекта обязательное поле" \ No newline at end of file +msgstr "Имя проекта обязательное поле" + +msgid "To save, you need to select a disk" +msgstr "Для сохранения нужно выбрать диск" \ No newline at end of file