[rkward] rkward/windows: Make sure, suffix portion of temporary preview input files remains constant (for easier filtering)

Thomas Friedrichsmeier null at kde.org
Thu Nov 22 14:24:21 GMT 2018


Git commit fd4cef69206e1bed6651604d3950b50280e985e2 by Thomas Friedrichsmeier.
Committed on 22/11/2018 at 14:24.
Pushed by tfry into branch 'master'.

Make sure, suffix portion of temporary preview input files remains constant (for easier filtering)

M  +1    -1    rkward/windows/rkcommandeditorwindow.cpp

https://commits.kde.org/rkward/fd4cef69206e1bed6651604d3950b50280e985e2

diff --git a/rkward/windows/rkcommandeditorwindow.cpp b/rkward/windows/rkcommandeditorwindow.cpp
index c1ff2113..ba9c37d0 100644
--- a/rkward/windows/rkcommandeditorwindow.cpp
+++ b/rkward/windows/rkcommandeditorwindow.cpp
@@ -891,7 +891,7 @@ void RKCommandEditorWindow::doRenderPreview () {
 			// If the file is already saved, save the preview input as a temp file in the same folder.
 			// esp. .Rmd files might try to include other files by relative path.
 			QString tempfiletemplate = m_doc->url ().toLocalFile ();
-			tempfiletemplate.append (".preview_XXXXXX.R");
+			tempfiletemplate.append ("_XXXXXX.rkward_preview.R");
 			if (mode == RMarkdownPreview) tempfiletemplate.append ("md");
 			preview_input_file = new QTemporaryFile (tempfiletemplate);
 		}



More information about the rkward-tracker mailing list