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