From 3d162b880acc8f8fc554fd700571d44cadc72f39 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 27 Jun 2020 17:29:47 +0200 Subject: [PATCH] Alert the user to which novelWriter version the file was saved with. --- nw/core/project.py | 3 ++- sample/nwProject.nwx | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nw/core/project.py b/nw/core/project.py index 1a0a035e..20e12a2a 100644 --- a/nw/core/project.py +++ b/nw/core/project.py @@ -382,8 +382,9 @@ class NWProject(): self.makeAlert(( "Unknown or unsupported %s project file format. " "The project cannot be opened by this version of %s. " + "The file was saved with novelWriter version %s." ) % ( - nw.__package__, nw.__package__ + nw.__package__, nw.__package__, appVersion ), nwAlert.ERROR) return False diff --git a/sample/nwProject.nwx b/sample/nwProject.nwx index c88c5269..c5a194a5 100644 --- a/sample/nwProject.nwx +++ b/sample/nwProject.nwx @@ -1,13 +1,13 @@ - + Sample Project Sample Project Jane Smith Jay Doh - 591 + 593 103 - 24557 + 24563 False