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()
|
void QgsGeoNodeSourceSelect::addConnectionsEntryList()
|
||||||
{
|
{
|
||||||
QgsGeoNodeNewConnection *nc = new QgsGeoNodeNewConnection( this );
|
QgsGeoNodeNewConnection nc( this );
|
||||||
|
|
||||||
if ( nc->exec() )
|
if ( nc.exec() )
|
||||||
{
|
{
|
||||||
populateConnectionList();
|
populateConnectionList();
|
||||||
emit connectionsChanged();
|
emit connectionsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
delete nc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsGeoNodeSourceSelect::modifyConnectionsEntryList()
|
void QgsGeoNodeSourceSelect::modifyConnectionsEntryList()
|
||||||
{
|
{
|
||||||
QgsGeoNodeNewConnection *nc = new QgsGeoNodeNewConnection( this, cmbConnections->currentText() );
|
QgsGeoNodeNewConnection nc( this, cmbConnections->currentText() );
|
||||||
nc->setWindowTitle( tr( "Modify GeoNode connection" ) );
|
nc.setWindowTitle( tr( "Modify GeoNode connection" ) );
|
||||||
|
|
||||||
if ( nc->exec() )
|
if ( nc.exec() )
|
||||||
{
|
{
|
||||||
populateConnectionList();
|
populateConnectionList();
|
||||||
emit connectionsChanged();
|
emit connectionsChanged();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user