diff --git a/key.ui/src/main/java/de/uka/ilkd/key/gui/actions/QuickSaveAction.java b/key.ui/src/main/java/de/uka/ilkd/key/gui/actions/QuickSaveAction.java index 8baa2212175..597cda24603 100644 --- a/key.ui/src/main/java/de/uka/ilkd/key/gui/actions/QuickSaveAction.java +++ b/key.ui/src/main/java/de/uka/ilkd/key/gui/actions/QuickSaveAction.java @@ -53,13 +53,18 @@ public static void quickSave(MainWindow mainWindow) { if (mainWindow.getMediator().ensureProofLoaded()) { final String filename = QUICK_SAVE_PATH; final Proof proof = mainWindow.getMediator().getSelectedProof(); - new ProofSaver(proof, filename, KeYConstants.INTERNAL_VERSION).save(); - final String status = "File quicksaved: " + filename; - mainWindow.popupWarning( - "Quicksaving file " + filename + " failed:\n" + status, - "Quicksave failed"); - LOGGER.debug("Quicksaving file {} failed.", filename, status); + String status = new ProofSaver(proof, filename, KeYConstants.INTERNAL_VERSION).save(); + + if (status == null) { + // success case + status = "File quicksaved: " + filename; + } else { + mainWindow.popupWarning( + "Quicksaving file " + filename + " failed:\n" + status, + "Quicksave failed"); + LOGGER.debug("Quicksaving file {} failed.", filename, status); + } mainWindow.setStatusLine(status); LOGGER.debug(status); } else {