[libcalamaresui] Reduce compile warnings

- "this" isn't used in the lambda; in future it might be if the
   lambda needs to get the configuration from settings.
This commit is contained in:
Adriaan de Groot 2019-08-09 16:43:50 +02:00
parent 91d327b224
commit ec08a293b2

View File

@ -241,7 +241,7 @@ 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, [this,msgBox]( QAbstractButton* button ) { connect( msgBox, &QMessageBox::buttonClicked, [msgBox]( QAbstractButton* button ) {
if ( msgBox->buttonRole( button ) == QMessageBox::ButtonRole::YesRole ) if ( msgBox->buttonRole( button ) == QMessageBox::ButtonRole::YesRole )
{ {
// TODO: host and port should be configurable // TODO: host and port should be configurable
@ -254,9 +254,7 @@ ViewManager::onInstallationFailed( const QString& message, const QString& detail
} }
// TODO: make the URL clickable, or copy it to the clipboard automatically // TODO: make the URL clickable, or copy it to the clipboard automatically
QMessageBox::critical(nullptr, QMessageBox::critical( nullptr, pasteUrlTitle, pasteUrlMsg );
pasteUrlTitle,
pasteUrlMsg);
} }
QApplication::quit(); QApplication::quit();
} ); } );