From 281cb10f84c1d52e3eda531921dfca1acb3434c6 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 29 May 2020 18:30:27 +0200 Subject: [PATCH] Fix shadowing member --- src/device/devicemanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/devicemanager.cpp b/src/device/devicemanager.cpp index fa8f9a781..1a35ab3ad 100644 --- a/src/device/devicemanager.cpp +++ b/src/device/devicemanager.cpp @@ -353,9 +353,9 @@ QVariant DeviceManager::data(const QModelIndex &idx, int role) const { if (info->database_id_ == -1 && !info->BestBackend()->lister_->DeviceNeedsMount(info->BestBackend()->unique_id_)) { if (info->BestBackend()->lister_->AskForScan(info->BestBackend()->unique_id_)) { std::unique_ptr dialog(new QMessageBox(QMessageBox::Information, tr("Connect device"), tr("This is the first time you have connected this device. Strawberry will now scan the device to find music files - this may take some time."), QMessageBox::Cancel)); - QPushButton *connect = dialog->addButton(tr("Connect device"), QMessageBox::AcceptRole); + QPushButton *pushbutton = dialog->addButton(tr("Connect device"), QMessageBox::AcceptRole); dialog->exec(); - if (dialog->clickedButton() != connect) return QVariant(); + if (dialog->clickedButton() != pushbutton) return QVariant(); } } const_cast(this)->Connect(info);