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:
Volker Lanz 2010-03-03 09:49:44 +00:00
parent 1bc2951102
commit 23d78e20b4
1 changed files with 4 additions and 1 deletions

View File

@ -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)