diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index fb584cd4a633..2b5ef5393cbb 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -4474,7 +4474,7 @@ void QgisApp::setupConnections() QString name = QgsProject::instance()->title().isEmpty() ? QgsProject::instance()->fileName() : QgsProject::instance()->title(); if ( QgsProject::instance()->projectStorage() ) { - name = QgsDataSourceUri::removePassword( name ); + name = QgsDataSourceUri::removePassword( name, true ); } mProjectLoadingProxyTask = new QgsProxyProgressTask( tr( "Loading “%1”" ).arg( name ) ); diff --git a/src/app/qgsprojectproperties.cpp b/src/app/qgsprojectproperties.cpp index 2f445f6a1ba4..7727b40ff0f6 100644 --- a/src/app/qgsprojectproperties.cpp +++ b/src/app/qgsprojectproperties.cpp @@ -305,7 +305,15 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas *mapCanvas, QWidget *pa mEndDateTimeEdit->setDateTime( range.end() ); title( QgsProject::instance()->title() ); - mProjectFileLineEdit->setText( QDir::toNativeSeparators( !QgsProject::instance()->fileName().isEmpty() ? QgsProject::instance()->fileName() : QgsProject::instance()->originalPath() ) ); + + QString name = !QgsProject::instance()->fileName().isEmpty() ? QgsProject::instance()->fileName() : QgsProject::instance()->originalPath(); + if ( QgsProject::instance()->projectStorage() ) + { + name = QgsDataSourceUri::removePassword( name, true ); + } + + mProjectFileLineEdit->setText( QDir::toNativeSeparators( name ) ); + mProjectHomeLineEdit->setShowClearButton( true ); mProjectHomeLineEdit->setText( QDir::toNativeSeparators( QgsProject::instance()->presetHomePath() ) ); connect( mButtonSetProjectHome, &QToolButton::clicked, this, [ = ]