Centralized the inquiry whether an image change is pending

This commit is contained in:
2012-03-03 13:39:50 +00:00
parent a5bfce693c
commit 105f007089
8 changed files with 22 additions and 22 deletions

View File

@ -2528,7 +2528,7 @@ int Xorriso_close_damaged(struct XorrisO *xorriso, int flag)
struct burn_drive *drive;
struct burn_write_opts *burn_options= NULL;
if(xorriso->volset_change_pending) {
if(Xorriso_change_is_pending(xorriso, 0)) {
sprintf(xorriso->info_text,
"Image changes pending. -commit or -rollback first");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);