[education/rkward] /: Fix crash while splitting data.frame editor

Thomas Friedrichsmeier null at kde.org
Fri Mar 27 07:42:11 GMT 2026


Git commit 1a7b225f3ad630d0431ecb63a24ffc36cb91c266 by Thomas Friedrichsmeier.
Committed on 27/03/2026 at 07:42.
Pushed by tfry into branch 'master'.

Fix crash while splitting data.frame editor

M  +1    -0    ChangeLog
M  +1    -0    rkward/dataeditor/rkeditordataframe.cpp

https://invent.kde.org/education/rkward/-/commit/1a7b225f3ad630d0431ecb63a24ffc36cb91c266

diff --git a/ChangeLog b/ChangeLog
index 74dd1e7fe..ba5649f65 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
 --- Version 0.8.3 - UNRELEASED
+- Fixed: Crash when splitting view on a data.frame editor window
 - Fixed: Allow compilation with the upcoming R 4.6
 - Fixed: Horizontal text alignment would be inaccurate for some symbols in RK() device
 - Fixed: Parts of a command entered interactively could run twice under specific circumstances
diff --git a/rkward/dataeditor/rkeditordataframe.cpp b/rkward/dataeditor/rkeditordataframe.cpp
index ec9f10bae..3d3231de8 100644
--- a/rkward/dataeditor/rkeditordataframe.cpp
+++ b/rkward/dataeditor/rkeditordataframe.cpp
@@ -33,6 +33,7 @@ RKEditorDataFrame::RKEditorDataFrame(RContainerObject *object, QWidget *parent)
 	setGlobalContextProperty(QStringLiteral("current_dataframe"), object->getFullName());
 
 	RKVarEditDataFrameModel *model = new RKVarEditDataFrameModel(object, this);
+	RKEditor::object = model->getObject();
 	initTable(model, object);
 	connect(model, &RKVarEditDataFrameModel::modelObjectDestroyed, this, &RKEditorDataFrame::detachModel);
 


More information about the rkward-tracker mailing list