Skip to content
Snippets Groups Projects
Commit dd990cb2 authored by Sam's avatar Sam Committed by Samuel Jones
Browse files

Re #22917 Updates things properly for ITable

Re #22917
parent 4f11a196
No related branches found
No related tags found
No related merge requests found
...@@ -183,6 +183,7 @@ bool addColumnPlotType(ITableWorkspace &self, const std::string &type, ...@@ -183,6 +183,7 @@ bool addColumnPlotType(ITableWorkspace &self, const std::string &type,
if (column) if (column)
column->setPlotType(plottype); column->setPlotType(plottype);
self.modified();
return column != nullptr; return column != nullptr;
} }
...@@ -198,6 +199,7 @@ bool addColumnPlotType(ITableWorkspace &self, const std::string &type, ...@@ -198,6 +199,7 @@ bool addColumnPlotType(ITableWorkspace &self, const std::string &type,
*/ */
bool addColumnSimple(ITableWorkspace &self, const std::string &type, bool addColumnSimple(ITableWorkspace &self, const std::string &type,
const std::string &name) { const std::string &name) {
self.modified();
return self.addColumn(type, name) != nullptr; return self.addColumn(type, name) != nullptr;
} }
...@@ -235,6 +237,7 @@ void setPlotType(ITableWorkspace &self, const bpl::object &column, int ptype) { ...@@ -235,6 +237,7 @@ void setPlotType(ITableWorkspace &self, const bpl::object &column, int ptype) {
} }
colptr->setPlotType(ptype); colptr->setPlotType(ptype);
self.modified();
} }
/** /**
...@@ -350,6 +353,7 @@ void addRowFromDict(ITableWorkspace &self, const bpl::dict &rowItems) { ...@@ -350,6 +353,7 @@ void addRowFromDict(ITableWorkspace &self, const bpl::dict &rowItems) {
self.removeRow(rowIndex); self.removeRow(rowIndex);
throw; throw;
} }
self.modified();
} }
/** /**
...@@ -398,6 +402,7 @@ void addRowFromSequence(ITableWorkspace &self, const bpl::object &rowItems) { ...@@ -398,6 +402,7 @@ void addRowFromSequence(ITableWorkspace &self, const bpl::object &rowItems) {
throw; throw;
} }
} }
self.modified();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment