|
|
|
@ -145,7 +145,13 @@ temp_set_window *temp_setup_window_custom(temp_set_window* temp_widgets, GtkBuil
|
|
|
|
|
|
|
|
|
|
void temp_select_disk() {
|
|
|
|
|
block_btn_save();
|
|
|
|
|
char* str_disk = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(temp_widgets->UserDeviceCombo));
|
|
|
|
|
char* str_disk = NULL;
|
|
|
|
|
if (strcmp(set_add_edit, "add")==0) {
|
|
|
|
|
str_disk = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(temp_widgets->UserDeviceCombo));
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
str_disk = (char*)gtk_label_get_label(GTK_LABEL(temp_widgets->lblSetNameDevice));
|
|
|
|
|
}
|
|
|
|
|
for (int i = 0; i < _all_config_temp->v_disk_status.vectorList.total; i++) {
|
|
|
|
|
disk_status* _config = (disk_status*)_all_config_temp->v_disk_status.pfVectorGet(&_all_config_temp->v_disk_status, i);
|
|
|
|
|
if (strstr(str_disk, _config->device)) {
|
|
|
|
@ -493,8 +499,6 @@ void get_add_gui_data_base(config_all* all_config) {
|
|
|
|
|
t.pfVectorAdd(&t, yon_char_new(str_user));
|
|
|
|
|
_config->actors.pfVectorCopy(&_config->actors, &t);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
vec_temp->pfVectorAdd(vec_temp, _config);
|
|
|
|
|
|
|
|
|
@ -637,7 +641,6 @@ config_u_g_p* get_temp_gui_data_base(config_u_g_p* _config) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (strstr(flag_temp_u_g_p,"prjquota")) {
|
|
|
|
|
|
|
|
|
|
char* actors = (char*)gtk_entry_get_text(GTK_ENTRY(temp_widgets->entryProjectName));
|
|
|
|
|
if (strlen(actors)>1) {
|
|
|
|
|
if (_config->actors.vectorList.total > 0) {
|
|
|
|
|