Skip to content
Permalink
Browse files

[bugfix] Focus jumps at eol after replacing in the middle of the string

Fixes #19643 : bug modifying name of the project

(cherry-picked from b57afa4)
  • Loading branch information
elpaso authored and nyalldawson committed Aug 20, 2018
1 parent b3521a4 commit e466294c7c4627d3b039cf6f23db0dc924da5e14
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/qgsprojectproperties.cpp
@@ -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"
@@ -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();

0 comments on commit e466294

Please sign in to comment.
You can’t perform that action at this time.