@@ -3251,7 +3251,7 @@ void QgisApp::updateRecentProjectPaths()
32513251
32523252 Q_FOREACH ( const QgsWelcomePageItemsModel::RecentProjectData& recentProject, mRecentProjects )
32533253 {
3254- QAction* action = mRecentProjectsMenu ->addAction ( QString ( " %1 (%2)" ).arg ( recentProject.title != recentProject.path ? recentProject.title : QFileInfo ( recentProject.path ).baseName (), recentProject.path ) );
3254+ QAction* action = mRecentProjectsMenu ->addAction ( QString ( " %1 (%2)" ).arg ( recentProject.title != recentProject.path ? recentProject.title : QFileInfo ( recentProject.path ).baseName (), QDir::toNativeSeparators ( recentProject.path ) ) );
32553255 action->setEnabled ( QFile::exists (( recentProject.path ) ) );
32563256 action->setData ( recentProject.path );
32573257 }
@@ -5041,7 +5041,7 @@ bool QgisApp::fileSave()
50415041 if ( QgsProject::instance ()->write () )
50425042 {
50435043 setTitleBarText_ ( *this ); // update title bar
5044- statusBar ()->showMessage ( tr ( " Saved project to: %1" ).arg ( QgsProject::instance ()->fileName () ), 5000 );
5044+ statusBar ()->showMessage ( tr ( " Saved project to: %1" ).arg ( QDir::toNativeSeparators ( QgsProject::instance ()->fileName () ) ), 5000 );
50455045
50465046 saveRecentProjectPath ( fullPath.filePath () );
50475047
@@ -5051,7 +5051,7 @@ bool QgisApp::fileSave()
50515051 else
50525052 {
50535053 QMessageBox::critical ( this ,
5054- tr ( " Unable to save project %1" ).arg ( QgsProject::instance ()->fileName () ),
5054+ tr ( " Unable to save project %1" ).arg ( QDir::toNativeSeparators ( QgsProject::instance ()->fileName () ) ),
50555055 QgsProject::instance ()->error () );
50565056 return false ;
50575057 }
@@ -5093,15 +5093,15 @@ void QgisApp::fileSaveAs()
50935093 if ( QgsProject::instance ()->write () )
50945094 {
50955095 setTitleBarText_ ( *this ); // update title bar
5096- statusBar ()->showMessage ( tr ( " Saved project to: %1" ).arg ( QgsProject::instance ()->fileName () ), 5000 );
5096+ statusBar ()->showMessage ( tr ( " Saved project to: %1" ).arg ( QDir::toNativeSeparators ( QgsProject::instance ()->fileName () ) ), 5000 );
50975097 // add this to the list of recently used project files
50985098 saveRecentProjectPath ( fullPath.filePath () );
50995099 mProjectLastModified = fullPath.lastModified ();
51005100 }
51015101 else
51025102 {
51035103 QMessageBox::critical ( this ,
5104- tr ( " Unable to save project %1" ).arg ( QgsProject::instance ()->fileName () ),
5104+ tr ( " Unable to save project %1" ).arg ( QDir::toNativeSeparators ( QgsProject::instance ()->fileName () ) ),
51055105 QgsProject::instance ()->error (),
51065106 QMessageBox::Ok,
51075107 Qt::NoButton );
0 commit comments