mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Allow Python scripts to use currently selected cases (#6906)
* #6891 Python : Make sure python scripts can be launched from context menu * #6891 Python : Make currentScriptCaseId a general scripting feature
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "RiaSocketCommand.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaSocketServer.h"
|
||||
#include "RiaSocketTools.h"
|
||||
|
||||
@@ -78,7 +79,7 @@ public:
|
||||
static QString commandName() { return QString( "GetCurrentCase" ); }
|
||||
bool interpretCommand( RiaSocketServer* server, const QList<QByteArray>& args, QDataStream& socketStream ) override
|
||||
{
|
||||
qint64 caseId = server->currentCaseId();
|
||||
qint64 caseId = RiaApplication::instance()->currentScriptCaseId();
|
||||
QString caseName;
|
||||
QString caseType;
|
||||
qint64 caseGroupId = -1;
|
||||
|
||||
Reference in New Issue
Block a user