Skip to content

Commit

Permalink
custom widgets: fix designer crash (fixes #32860)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7fdac2f)
  • Loading branch information
jef-n committed Nov 18, 2019
1 parent b9611ee commit 8d5bbb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ms-windows/osgeo4w/designer.bat.tmpl
Expand Up @@ -5,4 +5,5 @@ call py3_env.bat
path %OSGEO4W_ROOT%\apps\@package@\bin;%PATH%
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\@package@\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins
cd %USERPROFILE%
start "Qt Designer with QGIS custom widgets" /B "%OSGEO4W_ROOT%\apps\qt5\bin\designer.exe" %*
2 changes: 1 addition & 1 deletion src/core/auth/qgsauthmanager.cpp
Expand Up @@ -128,7 +128,7 @@ QSqlDatabase QgsAuthManager::authDatabaseConnection() const
authdb = QSqlDatabase::addDatabase( QStringLiteral( "QSQLITE" ), connectionName );
authdb.setDatabaseName( authenticationDatabasePath() );
// for background threads, remove database when current thread finishes
if ( QThread::currentThread() != QgsApplication::instance()->thread() )
if ( QThread::currentThread() != qApp->thread() )
{
QgsDebugMsgLevel( QStringLiteral( "Scheduled auth db remove on thread close" ), 2 );

Expand Down

0 comments on commit 8d5bbb7

Please sign in to comment.