fixed file saving bug
parent
e8405a5c04
commit
2ec3b7348b
|
@ -1143,6 +1143,7 @@ DOC_RETURN(This call returns non-zero on success.)
|
||||||
|
|
||||||
Editing_File *file = imp_get_file(cmd, buffer);
|
Editing_File *file = imp_get_file(cmd, buffer);
|
||||||
if (file){
|
if (file){
|
||||||
|
if (file_get_sync(file) != DirtyState_UpToDate){
|
||||||
result = true;
|
result = true;
|
||||||
|
|
||||||
Partition *part = &models->mem.part;
|
Partition *part = &models->mem.part;
|
||||||
|
@ -1151,6 +1152,7 @@ DOC_RETURN(This call returns non-zero on success.)
|
||||||
save_file_to_name(system, &models->mem, file, name.str);
|
save_file_to_name(system, &models->mem, file, name.str);
|
||||||
end_temp_memory(temp);
|
end_temp_memory(temp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue