Skip to content

Commit

Permalink
Remove obsolete saveToString calls.
Browse files Browse the repository at this point in the history
Table no longer implements saveToString, so these calls does nothing.

Refs #9970.
  • Loading branch information
Harry Jeffery committed Sep 8, 2014
1 parent 7cb889a commit 1b91408
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -3129,11 +3129,8 @@ void ApplicationWindow::initTable(Table* w, const QString& caption)
customTable(w);

w->setName(name);
w->setSpecifications(w->saveToString(QString::fromStdString(windowGeometryInfo(w))));
if ( !w->isA("MantidTable"))
{
if(!w->isA("MantidTable"))
w->setIcon( getQPixmap("worksheet_xpm") );
}

addMdiSubWindow(w);
}
Expand Down Expand Up @@ -8342,9 +8339,6 @@ MdiSubWindow* ApplicationWindow::clone(MdiSubWindow* w)
Table *t = dynamic_cast<Table*>(w);
QString caption = generateUniqueName(tr("Table"));
nw = newTable(caption, t->numRows(), t->numCols());
dynamic_cast<Table*>(nw)->copy(t);
QString spec = t->saveToString("geometry\n");
dynamic_cast<Table*>(nw)->setSpecifications(spec.replace(t->objectName(), caption));
} else if (w->isA("Graph3D")){
Graph3D *g = dynamic_cast<Graph3D*>(w);
if (!g->hasData()){
Expand Down

0 comments on commit 1b91408

Please sign in to comment.