mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-16 00:05:45 -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() );
|
||||
connections.remove( key );
|
||||
|
||||
if ( QThread::currentThread() == QApplication::instance()->thread() )
|
||||
if ( !QApplication::instance() || QThread::currentThread() == QApplication::instance()->thread() )
|
||||
deleteLater();
|
||||
else
|
||||
delete this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user