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