mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
[bugfix] Focus jumps at eol after replacing in the middle of the string
Fixes #19643 : bug modifying name of the project
This commit is contained in:
parent
245715ced5
commit
b57afa47ed
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user