mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix another leak
This commit is contained in:
parent
026309d99b
commit
11240121c1
@ -74,23 +74,21 @@ QgsGeoNodeSourceSelect::QgsGeoNodeSourceSelect( QWidget *parent, Qt::WindowFlags
|
||||
|
||||
void QgsGeoNodeSourceSelect::addConnectionsEntryList()
|
||||
{
|
||||
QgsGeoNodeNewConnection *nc = new QgsGeoNodeNewConnection( this );
|
||||
QgsGeoNodeNewConnection nc( this );
|
||||
|
||||
if ( nc->exec() )
|
||||
if ( nc.exec() )
|
||||
{
|
||||
populateConnectionList();
|
||||
emit connectionsChanged();
|
||||
}
|
||||
|
||||
delete nc;
|
||||
}
|
||||
|
||||
void QgsGeoNodeSourceSelect::modifyConnectionsEntryList()
|
||||
{
|
||||
QgsGeoNodeNewConnection *nc = new QgsGeoNodeNewConnection( this, cmbConnections->currentText() );
|
||||
nc->setWindowTitle( tr( "Modify GeoNode connection" ) );
|
||||
QgsGeoNodeNewConnection nc( this, cmbConnections->currentText() );
|
||||
nc.setWindowTitle( tr( "Modify GeoNode connection" ) );
|
||||
|
||||
if ( nc->exec() )
|
||||
if ( nc.exec() )
|
||||
{
|
||||
populateConnectionList();
|
||||
emit connectionsChanged();
|
||||
|
Loading…
x
Reference in New Issue
Block a user