Skip to content

Commit

Permalink
[bugfix] Focus jumps at eol after replacing in the middle of the string
Browse files Browse the repository at this point in the history
Fixes #19643 : bug modifying name of the project

(cherry-picked from b57afa4)
  • Loading branch information
elpaso authored and nyalldawson committed Aug 21, 2018
1 parent b3521a4 commit e466294
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -22,6 +22,7 @@
#include "qgsapplication.h"
#include "qgsdistancearea.h"
#include "qgisapp.h"
#include "qgis.h"
#include "qgscoordinatetransform.h"
#include "qgsdatumtransformtablewidget.h"
#include "qgslayoutmanager.h"
Expand Down Expand Up @@ -827,8 +828,8 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas *mapCanvas, QWidget *pa
mMetadataWidget->setMetadata( &QgsProject::instance()->metadata() );

// sync metadata title and project title fields
connect( mMetadataWidget, &QgsMetadataWidget::titleChanged, titleEdit, &QLineEdit::setText );
connect( titleEdit, &QLineEdit::textChanged, mMetadataWidget, &QgsMetadataWidget::setTitle );
connect( mMetadataWidget, &QgsMetadataWidget::titleChanged, titleEdit, &QLineEdit::setText, Qt::QueuedConnection );
connect( titleEdit, &QLineEdit::textChanged, [ = ] { whileBlocking( mMetadataWidget )->setTitle( title() ) ;} );

projectionSelectorInitialized();
populateRequiredLayers();
Expand Down

0 comments on commit e466294

Please sign in to comment.