Skip to content
Permalink
Browse files

Small fixes

 * Fix minor memory leak in attribute dialog
 * Safety check in dual view
  • Loading branch information
m-kuhn committed May 17, 2013
1 parent 5009aad commit 7b1d9e0f2d0fa87f1ae9e1d0797877fc022742fd
Showing with 3 additions and 2 deletions.
  1. +2 −1 src/gui/attributetable/qgsdualview.cpp
  2. +1 −1 src/gui/qgsattributedialog.cpp
@@ -31,6 +31,7 @@

QgsDualView::QgsDualView( QWidget* parent )
: QStackedWidget( parent )
, mAttributeDialog( NULL )
, mProgressDlg( NULL )
{
setupUi( this );
@@ -258,7 +259,7 @@ void QgsDualView::setCurrentEditSelection( const QgsFeatureIds& fids )

void QgsDualView::saveEditChanges()
{
if ( mAttributeDialog->dialog() )
if ( mAttributeDialog && mAttributeDialog->dialog() )
{
if ( mLayerCache->layer()->isEditable() )
{
@@ -179,7 +179,7 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
if ( !myWidget )
continue;

QLabel * mypLabel = new QLabel();
QLabel * mypLabel = new QLabel( mypInnerFrame );
mypInnerLayout->addWidget( mypLabel, index, 0 );
if ( myFieldType == QVariant::Int )
{

0 comments on commit 7b1d9e0

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