diff options
| author | Alexander Lohnau <[email protected]> | 2021-04-23 19:43:55 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2021-04-24 17:16:27 +0000 |
| commit | 844d1c05477a3137cce54561514c851bdfe49406 (patch) | |
| tree | c21951cb7d08c7892da7c8f969e41f1f8b18e59d /src/dolphintabwidget.cpp | |
| parent | 6cec386192e58089b4572996a265c9696cdcb3c0 (diff) | |
Remove code for dolphin < 4.14 tab restore
The old config keys haven't been written for since KDE 4 times
and has been internally marked as deprecated.
Diffstat (limited to 'src/dolphintabwidget.cpp')
| -rw-r--r-- | src/dolphintabwidget.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/dolphintabwidget.cpp b/src/dolphintabwidget.cpp index 0a024235b..cfb695e7d 100644 --- a/src/dolphintabwidget.cpp +++ b/src/dolphintabwidget.cpp @@ -87,15 +87,8 @@ void DolphinTabWidget::readProperties(const KConfigGroup& group) if (i >= count()) { openNewActivatedTab(); } - if (group.hasKey("Tab Data " % QString::number(i))) { - // Tab state created with Dolphin > 4.14.x - const QByteArray state = group.readEntry("Tab Data " % QString::number(i), QByteArray()); - tabPageAt(i)->restoreState(state); - } else { - // Tab state created with Dolphin <= 4.14.x - const QByteArray state = group.readEntry("Tab " % QString::number(i), QByteArray()); - tabPageAt(i)->restoreStateV1(state); - } + const QByteArray state = group.readEntry("Tab Data " % QString::number(i), QByteArray()); + tabPageAt(i)->restoreState(state); } const int index = group.readEntry("Active Tab Index", 0); |
