fix: --strip in console without X server would segfault & fix tests

This commit is contained in:
Stéphane Lesimple
2021-06-26 13:15:25 +02:00
parent 464f2b8bfa
commit bd9777a531
6 changed files with 561 additions and 63 deletions

View File

@@ -1427,7 +1427,9 @@ void StripECCFromImageFile()
PrintLog(_("Image successfully truncated back to its original size.\n"));
#ifndef WITH_CLI_ONLY_YES
ModalDialog(GTK_MESSAGE_INFO, GTK_BUTTONS_OK, NULL, _("Image successfully truncated"));
if (Closure->guiMode)
{ ModalDialog(GTK_MESSAGE_INFO, GTK_BUTTONS_OK, NULL, _("Image successfully truncated"));
}
#endif
/*** Clean up */