Skip to content

Commit 0d9f9e7

Browse files
author
jef
committedDec 10, 2009
cleanup after QgsNewConnection
git-svn-id: http://svn.osgeo.org/qgis/trunk@12399 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5073622 commit 0d9f9e7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎src/app/qgspgsourceselect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ QgsPgSourceSelect::QgsPgSourceSelect( QWidget *parent, Qt::WFlags fl )
9292
void QgsPgSourceSelect::on_btnNew_clicked()
9393
{
9494
QgsNewConnection *nc = new QgsNewConnection( this );
95-
9695
nc->exec();
96+
delete nc;
9797

9898
populateConnectionList();
9999
}
@@ -132,8 +132,8 @@ void QgsPgSourceSelect::addClicked()
132132
void QgsPgSourceSelect::on_btnEdit_clicked()
133133
{
134134
QgsNewConnection *nc = new QgsNewConnection( this, cmbConnections->currentText() );
135-
136135
nc->exec();
136+
delete nc;
137137

138138
populateConnectionList();
139139
}

‎src/plugins/spit/qgsspit.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,17 @@ void QgsSpit::newConnection()
122122
QgsNewConnection *nc = new QgsNewConnection( this );
123123
nc->exec();
124124
delete nc;
125+
126+
populateConnectionList();
125127
}
126128

127129
void QgsSpit::editConnection()
128130
{
129131
QgsNewConnection *nc = new QgsNewConnection( this, cmbConnections->currentText() );
130132
nc->exec();
131133
delete nc;
134+
135+
populateConnectionList();
132136
}
133137

134138
void QgsSpit::removeConnection()

0 commit comments

Comments
 (0)
Please sign in to comment.