]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Removed conditional in renameTab to allow unsetting custom labels
authorambar chakravartty <amch9605@gmail.com>
Sun, 2 Feb 2025 12:00:50 +0000 (12:00 +0000)
committerMéven Car <meven@kde.org>
Thu, 6 Feb 2025 14:32:35 +0000 (14:32 +0000)
co-authored by: Felix Ernst

src/dolphintabwidget.cpp

index be674994d90b3514a1e2378ae464a3b1ea94d6d9..b2f838a40ab7e44b4a4241fd893407c344d8cf56 100644 (file)
@@ -482,10 +482,7 @@ void DolphinTabWidget::currentTabChanged(int index)
 
 void DolphinTabWidget::renameTab(int index, const QString &name)
 {
-    if (!name.isEmpty()) {
-        tabPageAt(index)->setCustomLabel(name);
-    }
-
+    tabPageAt(index)->setCustomLabel(name);
     updateTabName(index);
 }