From 3cbc652daec27adf173a65b77227143980577781 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 27 Oct 2011 13:10:16 +0000 Subject: [PATCH] Normalize file name using QFileInfo::canonicalFilePath(...) method. --- src/LightApp/LightApp_Application.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index bf1eac254..7fa819fc1 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -903,15 +903,11 @@ public: const QString& theContext = QString() ) : myApp( theApp ), myParams( theParams ), -#ifdef WIN32 - myHelpFile( "file://" + theHelpFile ), -#else - myHelpFile( "file:" + theHelpFile ), -#endif myContext( theContext ), myStatus(0), myLApp( app ) { + myHelpFile = QString("file://%1").arg( QFileInfo( theHelpFile ).canonicalFilePath() ); } virtual void run() -- 2.39.2