┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.cpp
diff options
context:
space:
mode:
authorFabio D'Urso <[email protected]>2013-08-15 18:56:48 +0200
committerFabio D'Urso <[email protected]>2013-08-18 22:08:28 +0200
commitbfb10355c9d9be2224057c402e04c9c4e58a9995 (patch)
treef331a4d2061e145eed92839db90ffb8894a09cf2 /src/dolphinpart.cpp
parent804e83f893d04ce4bed150d4e6bd39db2374d878 (diff)
dolphin: Show full file info in statusbar when only one file is selected
The purpose of this change is to give the user a chance to see hover file information if it doesn't fit in the status bar, by allowing to click on the file and hover on the status bar. As it's now possible to have status bar texts starting with "<qt>", DolphinPart::updateStatusBar() must escape strings. Otherwise, filenames such as "<qt>Tes<font color=red>t" would be rendered as HTML data in konqueror's status bar when selected. BUG: 260717 FIXED-IN: 4.12.0 REVIEW: 111934
Diffstat (limited to 'src/dolphinpart.cpp')
-rw-r--r--src/dolphinpart.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp
index 81fbacb77..de4c6070d 100644
--- a/src/dolphinpart.cpp
+++ b/src/dolphinpart.cpp
@@ -572,7 +572,8 @@ void DolphinPart::updateNewMenu()
void DolphinPart::updateStatusBar()
{
- emit ReadOnlyPart::setStatusBarText(m_view->statusBarText());
+ const QString escapedText = Qt::convertFromPlainText(m_view->statusBarText());
+ emit ReadOnlyPart::setStatusBarText(QString("<qt>%1</qt>").arg(escapedText));
}
void DolphinPart::updateProgress(int percent)