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>
This commit is contained in:
Eike Ziller
2011-09-16 09:28:20 +02:00
parent d52d4ccd93
commit a4570dec9f
3 changed files with 10 additions and 3 deletions

View File

@@ -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()));
}