Skip to content
Permalink
Browse files

restore last used attribute table view when exiting multi-edit mode

(fix #25099)
  • Loading branch information
alexbruy authored and nyalldawson committed May 19, 2020
1 parent 621d607 commit 0a6312da82761b34d8465b5ad219a7d21d38feb5
Showing with 6 additions and 0 deletions.
  1. +5 −0 src/gui/attributetable/qgsdualview.cpp
  2. +1 −0 src/gui/attributetable/qgsdualview.h
@@ -630,7 +630,12 @@ void QgsDualView::openConditionalStyles()
void QgsDualView::setMultiEditEnabled( bool enabled )
{
if ( enabled )
{
mPreviousView = view();
setView( AttributeEditor );
}
else
setView( mPreviousView );

mAttributeForm->setMode( enabled ? QgsAttributeEditorContext::MultiEditMode : QgsAttributeEditorContext::SingleEditMode );
}
@@ -431,6 +431,7 @@ class GUI_EXPORT QgsDualView : public QStackedWidget, private Ui::QgsDualViewBas
QgsFeature mTempAttributeFormFeature;
QgsFeatureIds mLastFeatureSet;
bool mBrowsingAutoPanScaleAllowed = true;
ViewMode mPreviousView;

friend class TestQgsDualView;
friend class TestQgsAttributeTable;

0 comments on commit 0a6312d

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