diff options
| author | Wang Yu <[email protected]> | 2025-11-28 14:44:46 +0800 |
|---|---|---|
| committer | Wang Yu <[email protected]> | 2025-11-28 14:44:46 +0800 |
| commit | bf94464250c6a5e04f742932d0867c6a6926bc3d (patch) | |
| tree | 5486386403f0195992a69fa7d6073faba05402fe /src | |
| parent | 2471d1a4cd5fa25f91d35390e575be06579fa43b (diff) | |
DolphinTabWidget: fix wrong variable in tabInserted tooltip loop
Use loop index 'i' instead of function parameter 'index' for setTabToolTip.
Previously all tooltips would be set on the newly inserted tab instead of
their respective tabs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphintabwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphintabwidget.cpp b/src/dolphintabwidget.cpp index a25f92338..044586eb9 100644 --- a/src/dolphintabwidget.cpp +++ b/src/dolphintabwidget.cpp @@ -503,7 +503,7 @@ void DolphinTabWidget::tabInserted(int index) tabBar()->setTabIcon(i, QIcon::fromTheme(KIO::iconNameForUrl(pathUrl))); } if (tabBar()->tabToolTip(i).isEmpty()) { - tabBar()->setTabToolTip(index, url.toDisplayString(QUrl::PreferLocalFile)); + tabBar()->setTabToolTip(i, url.toDisplayString(QUrl::PreferLocalFile)); } } } |
