forked from qt-creator/qt-creator
Remove bool return value from IEditor::restoreState()
It's never used, and actually there wouldn't be any sensible thing to do with it. Change-Id: Id8a8df18c7db4b98e5abbc034240bb90dc1dcaa9 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -174,7 +174,7 @@ QByteArray ModelEditor::saveState() const
|
||||
return saveState(currentDiagram());
|
||||
}
|
||||
|
||||
bool ModelEditor::restoreState(const QByteArray &state)
|
||||
void ModelEditor::restoreState(const QByteArray &state)
|
||||
{
|
||||
QDataStream stream(state);
|
||||
int version = 0;
|
||||
@@ -198,11 +198,9 @@ bool ModelEditor::restoreState(const QByteArray &state)
|
||||
qmt::MDiagram *diagram = d->document->documentController()->modelController()->findObject<qmt::MDiagram>(uid);
|
||||
if (diagram) {
|
||||
openDiagram(diagram, false);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void ModelEditor::init()
|
||||
|
||||
Reference in New Issue
Block a user