┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGleb Kasachou <[email protected]>2025-08-26 16:32:44 +0300
committerGleb Kasachou <[email protected]>2025-08-26 16:49:27 +0300
commit2577a6c1cbf35e305ed03797d1297cb21899c7f5 (patch)
treef59ecceec52db6504483e07cc75b82ff20d15809 /src
parent8d511bff97c844ef2eeef2656dcd42eb1b647e03 (diff)
DolphinTabWidget: Fix split view
This commit fixes a segfault accidentally introduced in a previous commit.
Diffstat (limited to 'src')
-rw-r--r--src/dolphintabwidget.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dolphintabwidget.cpp b/src/dolphintabwidget.cpp
index 49e84ad3f..9e332da25 100644
--- a/src/dolphintabwidget.cpp
+++ b/src/dolphintabwidget.cpp
@@ -107,7 +107,13 @@ void DolphinTabWidget::readProperties(const KConfigGroup &group)
}
const int index = group.readEntry("Active Tab Index", 0);
- setCurrentIndex(index);
+ if (index != currentIndex()) {
+ setCurrentIndex(index);
+ } else {
+ DolphinTabPage *tabPage = tabPageAt(index);
+ tabPage->connectNavigators(m_navigatorsWidget);
+ m_lastViewedTab = tabPage;
+ }
}
void DolphinTabWidget::refreshViews()