Navigation Menu

Skip to content

Commit

Permalink
fix crash in mapserver (introduced with 1215d0b)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 7, 2014
1 parent df48b05 commit dcd8bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit dcd8bc5

Please sign in to comment.