[libcalamaresui] Remove unnecessary shadowing in lambda

This commit is contained in:
Adriaan de Groot 2021-03-09 14:25:40 +01:00
parent bc2435eb7d
commit 92e36558fa

View File

@ -186,11 +186,10 @@ ViewManager::onInstallationFailed( const QString& message, const QString& detail
msgBox->show(); msgBox->show();
cDebug() << "Calamares will quit when the dialog closes."; cDebug() << "Calamares will quit when the dialog closes.";
connect( msgBox, &QMessageBox::buttonClicked, [msgBox]( QAbstractButton* button ) { connect( msgBox, &QMessageBox::buttonClicked, [msgBox, serverType]( QAbstractButton* button ) {
if ( msgBox->buttonRole( button ) == QMessageBox::ButtonRole::YesRole ) if ( msgBox->buttonRole( button ) == QMessageBox::ButtonRole::YesRole )
{ {
QString pasteUrlMsg; QString pasteUrlMsg;
QString serverType = Calamares::Branding::instance()->uploadServer( Calamares::Branding::Type );
if ( serverType == "fiche" ) if ( serverType == "fiche" )
{ {
pasteUrlMsg = CalamaresUtils::ficheLogUpload( msgBox ); pasteUrlMsg = CalamaresUtils::ficheLogUpload( msgBox );