Showing with 11 additions and 0 deletions.
  1. BIN images/splash/splash.png
  2. +11 −0 src/app/qgisapp.cpp
Binary file modified images/splash/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3757,6 +3757,17 @@ bool QgisApp::fileSave()

QgsProject::instance()->setFileName( fullPath.filePath() );
}
else
{
QFileInfo fi( QgsProject::instance()->fileName() );
if ( fi.exists() && ! fi.isWritable() )
{
messageBar()->pushMessage( tr( "Insufficient permissions" ),
tr( "The project file is not writable." ),
QgsMessageBar::WARNING );
return false;
}
}

if ( QgsProject::instance()->write() )
{
Expand Down