mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
fix crash in mapserver (introduced with 1215d0b01)
This commit is contained in:
parent
df48b05a94
commit
dcd8bc5c69
@ -270,7 +270,7 @@ void QgsPostgresConn::disconnect()
|
|||||||
Q_ASSERT( !key.isNull() );
|
Q_ASSERT( !key.isNull() );
|
||||||
connections.remove( key );
|
connections.remove( key );
|
||||||
|
|
||||||
if ( QThread::currentThread() == QApplication::instance()->thread() )
|
if ( !QApplication::instance() || QThread::currentThread() == QApplication::instance()->thread() )
|
||||||
deleteLater();
|
deleteLater();
|
||||||
else
|
else
|
||||||
delete this;
|
delete this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user