Skip to content

Commit 4e5a526

Browse files
author
jef
committed
set attribute dialog title
git-svn-id: http://svn.osgeo.org/qgis/trunk@12423 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ffae675 commit 4e5a526

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/app/qgsattributedialog.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
8282
QGridLayout *gridLayout;
8383
QFrame *mFrame;
8484

85-
if ( mDialog->objectName().isEmpty() )
86-
mDialog->setObjectName( QString::fromUtf8( "QgsAttributeDialogBase" ) );
87-
8885
mDialog->resize( 447, 343 );
8986
gridLayout = new QGridLayout( mDialog );
9087
gridLayout->setSpacing( 6 );
@@ -181,6 +178,15 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
181178
}
182179
}
183180

181+
if ( mDialog )
182+
{
183+
if ( mDialog->objectName().isEmpty() )
184+
mDialog->setObjectName( "QgsAttributeDialogBase" );
185+
186+
if ( mDialog->windowTitle().isEmpty() )
187+
mDialog->setWindowTitle( tr( "Attributes - %1" ).arg( vl->name() ) );
188+
}
189+
184190
if ( buttonBox )
185191
{
186192
buttonBox->clear();

0 commit comments

Comments
 (0)