[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:
parent
91d327b224
commit
ec08a293b2
@ -241,7 +241,7 @@ ViewManager::onInstallationFailed( const QString& message, const QString& detail
|
||||
msgBox->show();
|
||||
|
||||
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 )
|
||||
{
|
||||
// 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
|
||||
QMessageBox::critical(nullptr,
|
||||
pasteUrlTitle,
|
||||
pasteUrlMsg);
|
||||
QMessageBox::critical( nullptr, pasteUrlTitle, pasteUrlMsg );
|
||||
}
|
||||
QApplication::quit();
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user