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
  • Loading branch information
elpaso authored and nyalldawson committed Aug 20, 2018
1 parent 245715c commit b57afa4
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() ) ;} );

//fill ts language checkbox
QString i18nPath = QgsApplication::i18nPath();
Expand Down

0 comments on commit b57afa4

Please sign in to comment.