mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
R avoid hang on console messaging
.. RInside is single threaded and hangs the event loop on the main thread (grrrr).
This commit is contained in:
@@ -57,8 +57,9 @@ class RCallbacks : public Callbacks {
|
||||
// see inst/includes/Callbacks.h for a list of all overrideable methods
|
||||
virtual void WriteConsole(const std::string& line, int type) {
|
||||
//qDebug()<<"Console>>" <<type<< QString::fromStdString(line);
|
||||
if (rtool && rtool->context && !rtool->starting) rtool->context->notifyRMessage(QString::fromStdString(line));
|
||||
else strings << QString::fromStdString(line);
|
||||
//if (rtool && rtool->context && !rtool->starting) rtool->context->notifyRMessage(QString::fromStdString(line));
|
||||
//else strings << QString::fromStdString(line);
|
||||
strings << QString::fromStdString(line);
|
||||
};
|
||||
|
||||
//virtual void ShowMessage(const char* message) {
|
||||
|
||||
Reference in New Issue
Block a user