diff options
| -rw-r--r-- | src/dolphintabpage.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dolphintabpage.cpp b/src/dolphintabpage.cpp index 8373d17b8..ce091cfc1 100644 --- a/src/dolphintabpage.cpp +++ b/src/dolphintabpage.cpp @@ -336,7 +336,7 @@ void DolphinTabPage::restoreState(const QByteArray &state) // Read the version number of the tab state and check if the version is supported. quint32 version = 0; stream >> version; - if (version != 3) { + if (version < 2 || version > 3) { // The version of the tab state isn't supported, we can't restore it. return; } @@ -374,7 +374,9 @@ void DolphinTabPage::restoreState(const QByteArray &state) QByteArray splitterState; stream >> splitterState; m_splitter->restoreState(splitterState); - stream >> m_splitterLastPosition; + if (version >= 3) { + stream >> m_splitterLastPosition; + } if (!stream.atEnd()) { QString tabTitle; |
