summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/findincurrentfile.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2011-09-16 09:28:20 +0200
committerEike Ziller <eike.ziller@nokia.com>2011-09-20 12:01:51 +0200
commita4570dec9fa451a024dc444d389cf63adb2abb0b (patch)
treeabc9a195db2a4546053ede613c049f3b405a0ea3 /src/plugins/texteditor/findincurrentfile.cpp
parentd52d4ccd93531e8438894e10ea804acbd7242334 (diff)
downloadqt-creator-a4570dec9fa451a024dc444d389cf63adb2abb0b.tar.gz
Fix displayed file name when searching directory ending with '/'.
Task-number: QTCREATORBUG-6119 Change-Id: I894da0f77e484fe0785ece8039f46233e05c5c91 Reviewed-on: http://codereview.qt-project.org/5063 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/findincurrentfile.cpp')
-rw-r--r--src/plugins/texteditor/findincurrentfile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/texteditor/findincurrentfile.cpp b/src/plugins/texteditor/findincurrentfile.cpp
index 7da08853f2..087ce65429 100644
--- a/src/plugins/texteditor/findincurrentfile.cpp
+++ b/src/plugins/texteditor/findincurrentfile.cpp
@@ -84,6 +84,7 @@ QString FindInCurrentFile::label() const
QString FindInCurrentFile::toolTip() const
{
+ // %2 is filled by BaseFileFind::runNewSearch
return tr("File path: %1\n%2").arg(QDir::toNativeSeparators(m_currentFile->fileName()));
}