[rkward/releases/0.6.5] /: Fix bug reporting on Windows (yet UNTESTED)
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Sun Apr 3 19:49:12 UTC 2016
Git commit c0aeb3efbaffaabcaa9267a5ad3c41f22936a839 by Thomas Friedrichsmeier.
Committed on 03/04/2016 at 19:48.
Pushed by tfry into branch 'releases/0.6.5'.
Fix bug reporting on Windows (yet UNTESTED)
M +1 -0 ChangeLog
M +2 -0 rkward/dialogs/rkerrordialog.cpp
http://commits.kde.org/rkward/c0aeb3efbaffaabcaa9267a5ad3c41f22936a839
diff --git a/ChangeLog b/ChangeLog
index f5f06ec..202e1a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
--- Version 0.6.5a - UNRELEASED
+- Fix bug report feature on Windows TODO: Really test this!
- Avoid some potential encoding issues, that could cause graphical select.list to fail for certain strings, under some circumstances
--- Version 0.6.5 - Apr-02-2016
diff --git a/rkward/dialogs/rkerrordialog.cpp b/rkward/dialogs/rkerrordialog.cpp
index ef6dc2d..40b7dac 100644
--- a/rkward/dialogs/rkerrordialog.cpp
+++ b/rkward/dialogs/rkerrordialog.cpp
@@ -26,6 +26,7 @@
#include <QLabel>
#include <QTextEdit>
#include <QTemporaryFile>
+#include <QDir>
#include <QTextStream>
#include "../rbackend/rinterface.h"
@@ -70,6 +71,7 @@ public:
void accept () {
// The report template is just too large to pass it via GET, so we use a local proxy page to pass it in a POST request
QTemporaryFile proxy;
+ proxy.setFileTemplate (QDir::tempPath () + "/rkwardbugXXXXXX.html"); // Force .html-suffix, as it appears to be required on Windows
proxy.setAutoRemove (false);
proxy.open ();
QTextStream out (&proxy);
More information about the rkward-tracker
mailing list