| Summary: | kdesvn's window title should show current directory | ||
|---|---|---|---|
| Product: | [Applications] kdesvn | Reporter: | David Faure <faure> |
| Component: | General | Assignee: | KDESvn default assignee <kdesvn-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | aspotashev, Ch.Ehrlicher |
| Priority: | NOR | ||
| Version First Reported In: | GIT (master) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/kdesvn/78b0cb0e5d2ad9e169c55e3337d7b10500e17dc0 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
David Faure
2018-03-13 09:49:16 UTC
You're looking for something like this (maybe remove svn root path?):
diff --git a/src/svnfrontend/maintreewidget.cpp b/src/svnfrontend/maintreewidget.cpp
index 0c4d50f8..6b3745f9 100644
--- a/src/svnfrontend/maintreewidget.cpp
+++ b/src/svnfrontend/maintreewidget.cpp
@@ -2236,6 +2236,9 @@ void MainTreeWidget::slotDirSelectionChanged(const QItemSelection &_item, const
if (Kdesvnsettings::show_navigation_panel()) {
m_TreeView->setRootIndex(m_Data->m_SortModel->mapFromSource(_t));
}
+ auto item = m_Data->m_Model->nodeForIndex(_t);
+ if (item)
+ changeCaption(item->fullName());
} else {
checkSyncTreeModel();
}
Thanks! Very helpful. https://phabricator.kde.org/D11355 Git commit 78b0cb0e5d2ad9e169c55e3337d7b10500e17dc0 by David Faure. Committed on 15/03/2018 at 22:02. Pushed by dfaure into branch 'master'. Display relative path (including name of the checkout) in the titlebar Summary: My wife requested this a very long time ago ;) Thanks to Christian Ehrlicher for the hint on how to implement it. Test Plan: While navigating in a checkout, the titlebar shows <name of checkout>/relative/path Reviewers: chehrlic Reviewed By: chehrlic Differential Revision: https://phabricator.kde.org/D11355 M +8 -0 src/svnfrontend/maintreewidget.cpp https://commits.kde.org/kdesvn/78b0cb0e5d2ad9e169c55e3337d7b10500e17dc0 |