mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[libcalamaresui] Remove unnecessary shadowing in lambda
This commit is contained in:
parent
bc2435eb7d
commit
92e36558fa
1 changed files with 1 additions and 2 deletions
|
@ -186,11 +186,10 @@ ViewManager::onInstallationFailed( const QString& message, const QString& detail
|
|||
msgBox->show();
|
||||
|
||||
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 )
|
||||
{
|
||||
QString pasteUrlMsg;
|
||||
QString serverType = Calamares::Branding::instance()->uploadServer( Calamares::Branding::Type );
|
||||
if ( serverType == "fiche" )
|
||||
{
|
||||
pasteUrlMsg = CalamaresUtils::ficheLogUpload( msgBox );
|
||||
|
|
Loading…
Add table
Reference in a new issue