Skip to content
Permalink
Browse files

Safer workflow when checking for OpenCL

  • Loading branch information
github-actions authored and nyalldawson committed Apr 29, 2020
1 parent 47b7f00 commit dbbc16511c0765729607f045f75325b59a12ba62
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsoptions.cpp
@@ -1145,8 +1145,13 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
{
if ( checked )
{
// Since this may crash and lock users out of the settings, let's disable opencl setting before entering
// and restore after available was successfully called
const bool openClStatus { QgsOpenClUtils::enabled() };
QgsOpenClUtils::setEnabled( false );
if ( QgsOpenClUtils::available( ) )
{
QgsOpenClUtils::setEnabled( openClStatus );
mOpenClContainerWidget->setEnabled( true );
mOpenClDevicesCombo->clear();

0 comments on commit dbbc165

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