[rkward/frameworks] rkward: Same HACK, better place.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Sep 16 15:04:45 UTC 2016


Git commit 95aa2b02632ff0bd04bf78b7350e8f5ab37acdef by Thomas Friedrichsmeier.
Committed on 16/09/2016 at 15:04.
Pushed by tfry into branch 'frameworks'.

Same HACK, better place.

M  +4    -0    rkward/rkward_startup_wrapper.cpp
M  +0    -4    rkward/windows/rkhtmlwindow.cpp

http://commits.kde.org/rkward/95aa2b02632ff0bd04bf78b7350e8f5ab37acdef

diff --git a/rkward/rkward_startup_wrapper.cpp b/rkward/rkward_startup_wrapper.cpp
index 1828fc3..9d0b6f4 100755
--- a/rkward/rkward_startup_wrapper.cpp
+++ b/rkward/rkward_startup_wrapper.cpp
@@ -280,6 +280,10 @@ int main (int argc, char *argv[]) {
 		}
 	}
 
+	// TODO: This is a _temporary_ hack!
+#warning Remove me!
+	qputenv ("KDIRWATCH_METHOD", QByteArray ("Stat"));
+
 	qputenv ("R_BINARY", r_exe.toLocal8Bit ());
 	QStringList call_args ("CMD");
 	call_args.append (debugger_args);
diff --git a/rkward/windows/rkhtmlwindow.cpp b/rkward/windows/rkhtmlwindow.cpp
index 884cf1b..b6514b4 100644
--- a/rkward/windows/rkhtmlwindow.cpp
+++ b/rkward/windows/rkhtmlwindow.cpp
@@ -1004,10 +1004,6 @@ RKOutputWindowManager* RKOutputWindowManager::self () {
 RKOutputWindowManager::RKOutputWindowManager () : QObject () {
 	RK_TRACE (APP);
 
-	// TODO: This is a _temporary_ hack!
-#warning Remove me!
-	qputenv ("KDIRWATCH_METHOD", "Stat");
-
 	file_watcher = new KDirWatch (this);
 	connect (file_watcher, &KDirWatch::dirty, this, &RKOutputWindowManager::fileChanged);
 	connect (file_watcher, &KDirWatch::created, this, &RKOutputWindowManager::fileChanged);



More information about the rkward-tracker mailing list