Clear if was selected section instead of a measurement.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-08-01 13:12:03 +03:00
parent e5c74c7866
commit e5a73a0dec

View File

@ -123,6 +123,12 @@ void DialogMDataBase::ShowDescription(QTreeWidgetItem *item, int column)
return; return;
} }
if (item->childCount() != 0)
{
ui->textEdit->clear();
return;
}
const QString name = item->data(0, Qt::UserRole).toString(); const QString name = item->data(0, Qt::UserRole).toString();
const QString number = qApp->TrVars()->MNumber(name); const QString number = qApp->TrVars()->MNumber(name);
const QString iconPath = QString("://diagrams/%1.png").arg(MapDiagrams(number)); const QString iconPath = QString("://diagrams/%1.png").arg(MapDiagrams(number));