From d6a25f90a92c4e42181fcc54a8f10dbd7654b33b Mon Sep 17 00:00:00 2001 From: Lukas W Date: Sat, 17 Oct 2015 13:06:34 +0200 Subject: [PATCH] FileBrowser: Fix file paths Fixes #2412 --- include/FileBrowser.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/FileBrowser.h b/include/FileBrowser.h index a1f72147d..a73a00801 100644 --- a/include/FileBrowser.h +++ b/include/FileBrowser.h @@ -199,10 +199,9 @@ public: const QString & path ); FileItem( const QString & name, const QString & path ); - inline QString fullName( void ) const + QString fullName() const { - return( QDir::cleanPath( m_path ) + QDir::separator() + - text( 0 ) ); + return QFileInfo(m_path, text(0)).absoluteFilePath(); } inline FileTypes type( void ) const