Skip to content
Permalink
Browse files
Start new layer group box collapsed
  • Loading branch information
elpaso committed Jul 6, 2021
1 parent 9fc81ff commit 40785b5abfa444bb7e10ac6abf518e341cf367fa
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/gui/qgsqueryresultwidget.cpp
@@ -60,6 +60,7 @@ QgsQueryResultWidget::QgsQueryResultWidget( QWidget *parent, QgsAbstractDatabase

mStatusLabel->hide();
mSqlErrorText->hide();
mLoadAsNewLayerGroupBox->setCollapsed( true );
setConnection( connection );
}

@@ -79,12 +80,17 @@ void QgsQueryResultWidget::executeQuery()
mSqlErrorText->hide();
mFirstRowFetched = false;

// Wait for other threads
// Cancel other threads
if ( mFeedback )
{
mFeedback->cancel();
}
mQueryResultWatcher.waitForFinished();

// ... and wait
if ( mQueryResultWatcher.isRunning() )
{
mQueryResultWatcher.waitForFinished();
}

if ( mConnection )
{

0 comments on commit 40785b5

Please sign in to comment.