diff --git a/src/gui/scanprogressdialog.cpp b/src/gui/scanprogressdialog.cpp index 3cd1fb4..dbca0cc 100644 --- a/src/gui/scanprogressdialog.cpp +++ b/src/gui/scanprogressdialog.cpp @@ -26,12 +26,13 @@ void ScanProgressDialog::closeEvent(QCloseEvent* e) e->ignore(); } -void ScanProgressDialog::setDeviceName(const QString& d) +void ScanProgressDialog::setDeviceName(const QString& device) { - if (d.isEmpty()) + if (device.isEmpty()) { setLabelText(xi18nc("@label", "Scanning...")); - else - setLabelText(xi18nc("@label", "Scanning device: %1", d)); + } else { + setLabelText(xi18nc("@label", "Scanning device: %1", device)); + } } void ScanProgressDialog::showEvent(QShowEvent* e) diff --git a/src/gui/scanprogressdialog.h b/src/gui/scanprogressdialog.h index a6d53ca..b3d8566 100644 --- a/src/gui/scanprogressdialog.h +++ b/src/gui/scanprogressdialog.h @@ -19,7 +19,8 @@ public: void setProgress(int p) { setValue(p); } - void setDeviceName(const QString& d); + + void setDeviceName(const QString& device); protected: void closeEvent(QCloseEvent* e) override;