just show a "scanning..." msg if there is no device node set
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098233
This commit is contained in:
parent
1bc2951102
commit
23d78e20b4
|
@ -32,7 +32,10 @@ ScanProgressDialog::ScanProgressDialog(QWidget* parent) :
|
|||
|
||||
void ScanProgressDialog::setDeviceName(const QString& d)
|
||||
{
|
||||
setLabelText(i18nc("@label", "Scanning device: <filename>%1</filename>", d));
|
||||
if (d.isEmpty())
|
||||
setLabelText(i18nc("@label", "Scanning..."));
|
||||
else
|
||||
setLabelText(i18nc("@label", "Scanning device: <filename>%1</filename>", d));
|
||||
}
|
||||
|
||||
void ScanProgressDialog::showEvent(QShowEvent* e)
|
||||
|
|
Loading…
Reference in New Issue