Ref T189, context menu "Clear highlighting" only if there are highlighted rows

* added customMenu in template
* added hasHighlightedRows
This commit is contained in:
Klaus Basan
2017-11-12 03:38:43 +01:00
parent e24914cc26
commit 3d76eabac5
6 changed files with 32 additions and 4 deletions

View File

@@ -221,5 +221,9 @@ namespace BlackGui
this->m_highlightStrings.clear();
COrderableListModelDbObjects::clearHighlighting();
}
bool CAircraftModelListModel::hasHighlightedRows() const
{
return !m_highlightStrings.isEmpty();
}
} // namespace
} // namespace