Skip to content
Permalink
Browse files

Merge pull request #5649 from rouault/settings_main_canvas_preview_jobs

Add a setting to be able to disable preview jobs in main canvas
  • Loading branch information
rouault committed Nov 16, 2017
2 parents d590e98 + ca8d82f commit 48c320beb04c3d2f391225bbef934cfafb278c6e
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/app/qgisapp.cpp
@@ -717,7 +717,13 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
connect( mMapCanvas, &QgsMapCanvas::messageEmitted, this, &QgisApp::displayMessage );
mMapCanvas->setWhatsThis( tr( "Map canvas. This is where raster and vector "
"layers are displayed when added to the map" ) );
mMapCanvas->setPreviewJobsEnabled( true );

if ( settings.value( QStringLiteral( "qgis/main_canvas_preview_jobs" ) ).isNull() )
{
// So that it appears in advanced settings
settings.setValue( QStringLiteral( "qgis/main_canvas_preview_jobs" ), true );
}
mMapCanvas->setPreviewJobsEnabled( settings.value( QStringLiteral( "qgis/main_canvas_preview_jobs" ), true ).toBool() );

// set canvas color right away
int myRed = settings.value( QStringLiteral( "qgis/default_canvas_color_red" ), 255 ).toInt();

0 comments on commit 48c320b

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