Skip to content

Commit

Permalink
Fix some lambda connects without context arguments (these cause crash…
Browse files Browse the repository at this point in the history
…es--STOP doing THIS!)
  • Loading branch information
nyalldawson committed Nov 4, 2019
1 parent 1f3b039 commit 8dadbed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/symbology/qgsrendererwidget.cpp
Expand Up @@ -320,7 +320,7 @@ void QgsRendererWidget::showSymbolLevelsDialog( QgsFeatureRenderer *r )
QgsSymbolLevelsWidget *widget = new QgsSymbolLevelsWidget( r, r->usingSymbolLevels(), panel );
widget->setPanelTitle( tr( "Symbol Levels" ) );
connect( widget, &QgsPanelWidget::widgetChanged, widget, &QgsSymbolLevelsWidget::apply );
connect( widget, &QgsPanelWidget::widgetChanged, [ = ]() { emit widgetChanged(); emit symbolLevelsChanged(); } );
connect( widget, &QgsPanelWidget::widgetChanged, this, [ = ]() { emit widgetChanged(); emit symbolLevelsChanged(); } );
panel->openPanel( widget );
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/symbology/qgsstyleexportimportdialog.cpp
Expand Up @@ -398,7 +398,7 @@ void QgsStyleExportImportDialog::downloadStyleXml( const QUrl &url )
QgsNetworkContentFetcherTask *fetcher = new QgsNetworkContentFetcherTask( url );
fetcher->setDescription( tr( "Downloading style" ) );
connect( progressDlg, &QProgressDialog::canceled, fetcher, &QgsNetworkContentFetcherTask::cancel );
connect( fetcher, &QgsNetworkContentFetcherTask::progressChanged, [progressDlg]( double progress ) { progressDlg->setValue( progress ); } );
connect( fetcher, &QgsNetworkContentFetcherTask::progressChanged, progressDlg, &QProgressDialog::setValue );
connect( fetcher, &QgsNetworkContentFetcherTask::fetched, this, [this, fetcher, progressDlg]
{
QNetworkReply *reply = fetcher->reply();
Expand Down

0 comments on commit 8dadbed

Please sign in to comment.