[rkward] rkward/rbackend: Experimental: Try to avoid window-restacking after select.list dialog (as reported on Mac)

Thomas Friedrichsmeier null at kde.org
Tue Apr 3 09:59:42 UTC 2018


Git commit 5b9c8b30ec1dfe9db37bd137597ea3b9b1c8d746 by Thomas Friedrichsmeier.
Committed on 03/04/2018 at 09:58.
Pushed by tfry into branch 'master'.

Experimental: Try to avoid window-restacking after select.list dialog (as reported on Mac)

M  +2    -1    rkward/rbackend/rkrinterface.cpp

https://commits.kde.org/rkward/5b9c8b30ec1dfe9db37bd137597ea3b9b1c8d746

diff --git a/rkward/rbackend/rkrinterface.cpp b/rkward/rbackend/rkrinterface.cpp
index 7df0a10f..02296378 100644
--- a/rkward/rbackend/rkrinterface.cpp
+++ b/rkward/rbackend/rkrinterface.cpp
@@ -60,6 +60,7 @@
 
 #include <stdlib.h>
 #include <QFileDialog>
+#include <QApplication>
 
 // flush new pieces of output after this period of time:
 #define FLUSH_INTERVAL 100
@@ -600,7 +601,7 @@ QStringList RInterface::processPlainGenericRequest (const QStringList &calllist)
 		QStringList preselects = calllist.mid (4, num_preselects);
 		QStringList choices = calllist.mid (4 + num_preselects);
 
-		QStringList results = RKSelectListDialog::doSelect (0, title, choices, preselects, multiple);
+		QStringList results = RKSelectListDialog::doSelect (QApplication::activeWindow(), title, choices, preselects, multiple);
 		if (results.isEmpty ()) results.append ("");	// R wants to have it that way
 		return (results);
 	} else if (call == "commandHistory") {



More information about the rkward-tracker mailing list