Commit 8941745b authored by Fabio D'Urso's avatar Fabio D'Urso
Browse files

dolphin: Show full KFileItem statusbar text with hovered folders too

This patch changes the status bar text dolphin shows when a folder is
hovered. It now shows full folder info, eg:
  "mydir (folder, symlink to /opt/mydir")
instead of:
  "mydir"
This is consistent with dolphin's behavior on regular files, and
DolphinPart already does that (DolphinPart::slotRequestItemInfo has no
special cases for folders).

CCBUG: 260717
REVIEW: 112106
parent ba56ec86
...@@ -506,8 +506,7 @@ void DolphinViewContainer::showItemInfo(const KFileItem& item) ...@@ -506,8 +506,7 @@ void DolphinViewContainer::showItemInfo(const KFileItem& item)
if (item.isNull()) { if (item.isNull()) {
m_statusBar->resetToDefaultText(); m_statusBar->resetToDefaultText();
} else { } else {
const QString text = item.isDir() ? item.text() : item.getStatusBarInfo(); m_statusBar->setText(item.getStatusBarInfo());
m_statusBar->setText(text);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment