Skip to content
Permalink
Browse files

fix crash in mapserver (introduced with 1215d0b)

  • Loading branch information
jef-n committed Jan 7, 2014
1 parent df48b05 commit dcd8bc5c69ee2d90d77ff0c8cf5c64fed7047e2a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresconn.cpp
@@ -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;

0 comments on commit dcd8bc5

Please sign in to comment.
You can’t perform that action at this time.