From 431bc8d40143690f4d7fea29ec8fedbeb377e7d3 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Tue, 8 Aug 2023 10:39:10 +0200 Subject: [PATCH] Clarify closing dialog on build settings --- novelwriter/tools/manussettings.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/novelwriter/tools/manussettings.py b/novelwriter/tools/manussettings.py index ed2c78b8..fb5eeba0 100644 --- a/novelwriter/tools/manussettings.py +++ b/novelwriter/tools/manussettings.py @@ -244,11 +244,14 @@ class GuiBuildSettings(QDialog): ## def _askToSaveBuild(self) -> None: - """Check if there are unsaved changes, and if there are, ask if - it's ok to reject them. + """Check if there are unsaved changes, and if there are, ask + whether the user wants to save them. """ if self._build.changed: - if self.mainGui.askQuestion(self.tr("Do you want to save your changes?")): + response = self.mainGui.askQuestion(self.tr( + "Do you want to save your changes to '{0}'?".format(self._build.name) + )) + if response: self._emitBuildData() self._build.resetChangedState() return