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

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

0 comments on commit b57afa4

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