[education/rkward] rkward/misc: Fix replacer

Yuri Chornoivan null at kde.org
Thu Mar 10 08:54:27 GMT 2022


Git commit ae87eb20760b4715faccfd9fb26e4c640faa7500 by Yuri Chornoivan.
Committed on 10/03/2022 at 08:54.
Pushed by yurchor into branch 'master'.

Fix replacer

M  +1    -1    rkward/misc/rkoutputdirectory.cpp

https://invent.kde.org/education/rkward/commit/ae87eb20760b4715faccfd9fb26e4c640faa7500

diff --git a/rkward/misc/rkoutputdirectory.cpp b/rkward/misc/rkoutputdirectory.cpp
index 469a5f4c..9f1fd3d0 100644
--- a/rkward/misc/rkoutputdirectory.cpp
+++ b/rkward/misc/rkoutputdirectory.cpp
@@ -524,7 +524,7 @@ RKOutputDirectoryCallResult RKOutputDirectory::get(const QString &_filename, boo
 		RKOutputDirectory *dir = findOutputBySaveUrl(filename);
 		// NOTE: annoyingly QFileInfo::canonicalFilePath() returns an empty string, if the file does not exist
 		if (create) {
-			if (dir) return GenericRRequestResult::makeError(i18n("Output '1%' is already loaded in this session. Cannot create it.", filename));
+			if (dir) return GenericRRequestResult::makeError(i18n("Output '%1' is already loaded in this session. Cannot create it.", filename));
 			if (file_exists) return GenericRRequestResult::makeError(i18n("A file named '%1' already exists. Cannot create it.", filename));
 
 			// NOTE: This may seem a bit of an unusual case: Creating a fresh output with save file name already specified.


More information about the rkward-tracker mailing list