Don't show "N/A" as description when there is no Gecko code
"N/A" can be awkward to handle in translations. I don't think there's much point in showing "N/A" rather than leaving the description box blank, so let's just leave it blank.
This commit is contained in:
parent
e29cd19f73
commit
7253c4bb52
|
@ -118,9 +118,6 @@ void GeckoCodeWidget::OnSelectionChanged()
|
||||||
|
|
||||||
m_code_description->clear();
|
m_code_description->clear();
|
||||||
|
|
||||||
if (code.notes.empty())
|
|
||||||
m_code_description->append(tr("N/A"));
|
|
||||||
|
|
||||||
for (const auto& line : code.notes)
|
for (const auto& line : code.notes)
|
||||||
m_code_description->append(QString::fromStdString(line));
|
m_code_description->append(QString::fromStdString(line));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue