┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphintabwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphintabwidget.cpp')
-rw-r--r--src/dolphintabwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dolphintabwidget.cpp b/src/dolphintabwidget.cpp
index c2fae5170..be674994d 100644
--- a/src/dolphintabwidget.cpp
+++ b/src/dolphintabwidget.cpp
@@ -124,8 +124,8 @@ void DolphinTabWidget::updateTabName(int index)
{
Q_ASSERT(index >= 0);
- if (!tabPageAt(index)->title().isEmpty()) {
- QString name = tabPageAt(index)->title();
+ if (!tabPageAt(index)->customLabel().isEmpty()) {
+ QString name = tabPageAt(index)->customLabel();
tabBar()->setTabText(index, name);
return;
}
@@ -483,7 +483,7 @@ void DolphinTabWidget::currentTabChanged(int index)
void DolphinTabWidget::renameTab(int index, const QString &name)
{
if (!name.isEmpty()) {
- tabPageAt(index)->setTitle(name);
+ tabPageAt(index)->setCustomLabel(name);
}
updateTabName(index);