Skip to content
Permalink
Browse files

Default to remembering last attribute table view

  • Loading branch information
nyalldawson committed Mar 8, 2016
1 parent 47d97b2 commit c6ebb8cbb8e826ae015379f6f8ab84b70d549302
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgsattributetabledialog.cpp
  2. +1 −1 src/app/qgsoptions.cpp
@@ -238,7 +238,7 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
mUpdateExpressionText->setLayer( mLayer );
mUpdateExpressionText->setLeftHandButtonStyle( true );

int initialView = settings.value( "/qgis/attributeTableView", QgsDualView::AttributeTable ).toInt();
int initialView = settings.value( "/qgis/attributeTableView", -1 ).toInt();
if ( initialView < 0 )
{
initialView = settings.value( "/qgis/attributeTableLastView", QgsDualView::AttributeTable ).toInt();
@@ -341,7 +341,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) :
mAttrTableViewComboBox->addItem( tr( "Remember last view" ), -1 );
mAttrTableViewComboBox->addItem( tr( "Table view" ), QgsDualView::AttributeTable );
mAttrTableViewComboBox->addItem( tr( "Form view" ), QgsDualView::AttributeEditor );
mAttrTableViewComboBox->setCurrentIndex( mAttrTableViewComboBox->findData( mSettings->value( "/qgis/attributeTableView", QgsDualView::AttributeTable ).toInt() ) );
mAttrTableViewComboBox->setCurrentIndex( mAttrTableViewComboBox->findData( mSettings->value( "/qgis/attributeTableView", -1 ).toInt() ) );

spinBoxAttrTableRowCache->setValue( mSettings->value( "/qgis/attributeTableRowCache", 10000 ).toInt() );
spinBoxAttrTableRowCache->setSpecialValueText( tr( "All" ) );

0 comments on commit c6ebb8c

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