Skip to content

Commit

Permalink
cleanup after QgsNewConnection
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12399 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 10, 2009
1 parent bdaf31e commit 4243815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgspgsourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ QgsPgSourceSelect::QgsPgSourceSelect( QWidget *parent, Qt::WFlags fl )
void QgsPgSourceSelect::on_btnNew_clicked()
{
QgsNewConnection *nc = new QgsNewConnection( this );

nc->exec();
delete nc;

populateConnectionList();
}
Expand Down Expand Up @@ -132,8 +132,8 @@ void QgsPgSourceSelect::addClicked()
void QgsPgSourceSelect::on_btnEdit_clicked()
{
QgsNewConnection *nc = new QgsNewConnection( this, cmbConnections->currentText() );

nc->exec();
delete nc;

populateConnectionList();
}
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/spit/qgsspit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,17 @@ void QgsSpit::newConnection()
QgsNewConnection *nc = new QgsNewConnection( this );
nc->exec();
delete nc;

populateConnectionList();
}

void QgsSpit::editConnection()
{
QgsNewConnection *nc = new QgsNewConnection( this, cmbConnections->currentText() );
nc->exec();
delete nc;

populateConnectionList();
}

void QgsSpit::removeConnection()
Expand Down

0 comments on commit 4243815

Please sign in to comment.