Skip to content
Permalink
Browse files
Switch saving edits from Attribute Table dialog from connection to us…
…ing public function
  • Loading branch information
dakcarto committed Jan 18, 2013
1 parent 923aa5f commit f5d1d9f867bbc9d8f314bf9df82a76aa94fee7dd
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/app/qgsattributetabledialog.cpp
@@ -121,9 +121,6 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
mAddFeature->setEnabled( canAddFeatures && mLayer->isEditable() && mLayer->geometryType() == QGis::NoGeometry );
mAddFeature->setHidden( !canAddFeatures || mLayer->geometryType() != QGis::NoGeometry );

// info from table to application
connect( this, SIGNAL( saveEdits( QgsMapLayer * ) ), QgisApp::instance(), SLOT( saveEdits( QgsMapLayer * ) ) );

// info from layer to table
connect( mLayer, SIGNAL( editingStarted() ), this, SLOT( editingToggled() ) );
connect( mLayer, SIGNAL( editingStopped() ), this, SLOT( editingToggled() ) );
@@ -677,7 +674,7 @@ void QgsAttributeTableDialog::on_mToggleEditingButton_toggled()

void QgsAttributeTableDialog::on_mSaveEditsButton_clicked()
{
emit saveEdits( mLayer );
QgisApp::instance()->saveEdits( mLayer, true, true );
}

void QgsAttributeTableDialog::editingToggled()

0 comments on commit f5d1d9f

Please sign in to comment.