Skip to content

Commit

Permalink
Start new layer group box collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jul 6, 2021
1 parent 9fc81ff commit 40785b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/gui/qgsqueryresultwidget.cpp
Expand Up @@ -60,6 +60,7 @@ QgsQueryResultWidget::QgsQueryResultWidget( QWidget *parent, QgsAbstractDatabase

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

Expand All @@ -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 )
{
Expand Down

0 comments on commit 40785b5

Please sign in to comment.