@@ -64,9 +64,7 QVariant VariableModel::data(const QModelIndex &index, int role) const | |||
|
64 | 64 | } |
|
65 | 65 | |
|
66 | 66 | if (role == Qt::DisplayRole) { |
|
67 |
|
|
|
68 | ||
|
69 | if (variable) { | |
|
67 | if (auto variable = impl->m_Variables.at(index.row()).get()) { | |
|
70 | 68 | switch (index.column()) { |
|
71 | 69 | case NAME_COLUMN: |
|
72 | 70 | return variable->m_Name; |
General Comments 0
You need to be logged in to leave comments.
Login now