Skip to content

Commit e8994c4

Browse files
author
jef
committed
fix #2237, #2238
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12393 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2bd8a4b commit e8994c4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/app/attributetable/qgsattributetabledialog.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
7878
mDock = new QgsAttributeTableDock( tr( "Attribute table - %1" ).arg( mLayer->name() ), QgisApp::instance() );
7979
mDock->setAllowedAreas( Qt::BottomDockWidgetArea | Qt::TopDockWidgetArea );
8080
mDock->setWidget( this );
81+
connect( this, SIGNAL( destroyed() ), mDock, SLOT( close() ) );
8182
QgisApp::instance()->addDockWidget( Qt::BottomDockWidgetArea, mDock );
8283
}
8384

@@ -505,6 +506,10 @@ void QgsAttributeTableDialog::updateSelectionFromLayer()
505506
{
506507
QgsDebugMsg( "updateFromLayer" );
507508
mSelectedFeatures = mLayer->selectedFeaturesIds();
509+
510+
if ( cbxShowSelectedOnly->isChecked() )
511+
mFilterModel->invalidate();
512+
508513
updateSelection();
509514
}
510515

src/app/qgsidentifyresults.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ void QgsIdentifyResults::close()
297297

298298
saveWindowLocation();
299299
done( 0 );
300+
if ( mDock )
301+
mDock->close();
300302
}
301303

302304
// Save the current window size/position before closing
@@ -622,8 +624,8 @@ void QgsIdentifyResults::disconnectLayer( QObject *layer )
622624
{
623625
disconnect( vlayer, SIGNAL( layerDeleted() ), this, SLOT( layerDestroyed() ) );
624626
disconnect( vlayer, SIGNAL( featureDeleted( int ) ), this, SLOT( featureDeleted( int ) ) );
625-
disconnect( vlayer, SIGNAL( editingStarted() ), this, SLOT( changeEditAction() ) );
626-
disconnect( vlayer, SIGNAL( editingStopped() ), this, SLOT( changeEditAction() ) );
627+
disconnect( vlayer, SIGNAL( editingStarted() ), this, SLOT( editingToggled() ) );
628+
disconnect( vlayer, SIGNAL( editingStopped() ), this, SLOT( editingToggled() ) );
627629
}
628630
else
629631
{

0 commit comments

Comments
 (0)