From e5a73a0dec53f3091b4de3adfb6ec31015cb7496 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 1 Aug 2015 13:12:03 +0300 Subject: [PATCH] Clear if was selected section instead of a measurement. --HG-- branch : feature --- src/app/tape/dialogs/dialogmdatabase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/tape/dialogs/dialogmdatabase.cpp b/src/app/tape/dialogs/dialogmdatabase.cpp index 6dfc659a5..939b00ddd 100644 --- a/src/app/tape/dialogs/dialogmdatabase.cpp +++ b/src/app/tape/dialogs/dialogmdatabase.cpp @@ -123,6 +123,12 @@ void DialogMDataBase::ShowDescription(QTreeWidgetItem *item, int column) return; } + if (item->childCount() != 0) + { + ui->textEdit->clear(); + return; + } + const QString name = item->data(0, Qt::UserRole).toString(); const QString number = qApp->TrVars()->MNumber(name); const QString iconPath = QString("://diagrams/%1.png").arg(MapDiagrams(number));