src: replaced references to NODE_FILE with call to isFile

This commit is contained in:
mlangkabel
2017-12-07 14:52:12 +01:00
parent b02596ddfa
commit 91b0c5d05f
9 changed files with 34 additions and 13 deletions
+1 -1
View File
@@ -879,7 +879,7 @@ void QtMainWindow::setupHistoryMenu()
for (size_t i = 0; i < m_history.size(); i++)
{
SearchMatch& match = m_history[i];
std::string name = utility::elide(match.nodeType.getType() == NodeType::NODE_FILE ? match.text : match.name, utility::ELIDE_RIGHT, 50);
std::string name = utility::elide(match.nodeType.isFile() ? match.text : match.name, utility::ELIDE_RIGHT, 50);
QAction* action = new QAction();
action->setText(name.c_str());