forked from qt-creator/qt-creator
EditorManager: Remove unused return value
Change-Id: I13348a14c560251eac019c6f7c230191af4367ed Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -3639,7 +3639,7 @@ QByteArray EditorManager::saveState()
|
||||
|
||||
\sa saveState()
|
||||
*/
|
||||
bool EditorManager::restoreState(const QByteArray &state)
|
||||
void EditorManager::restoreState(const QByteArray &state)
|
||||
{
|
||||
closeAllEditors(true);
|
||||
// remove extra windows
|
||||
@@ -3654,7 +3654,7 @@ bool EditorManager::restoreState(const QByteArray &state)
|
||||
|
||||
const bool isVersion5 = version == "EditorManagerV5";
|
||||
if (version != "EditorManagerV4" && !isVersion5)
|
||||
return false;
|
||||
return;
|
||||
|
||||
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||
|
||||
@@ -3715,8 +3715,6 @@ bool EditorManager::restoreState(const QByteArray &state)
|
||||
}
|
||||
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@@ -113,7 +113,7 @@ public:
|
||||
static bool closeEditors(const QList<IEditor *> &editorsToClose, bool askAboutModifiedEditors = true);
|
||||
|
||||
static QByteArray saveState();
|
||||
static bool restoreState(const QByteArray &state);
|
||||
static void restoreState(const QByteArray &state);
|
||||
static bool hasSplitter();
|
||||
|
||||
static void showEditorStatusBar(const QString &id,
|
||||
|
Reference in New Issue
Block a user