Skip to content
Snippets Groups Projects
Commit 44de9d7c authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

phonedirectorymodel: Fix invalid memory access

parent c5d1fa66
No related branches found
No related tags found
No related merge requests found
......@@ -166,8 +166,10 @@ QVariant PhoneDirectoryModel::data(const QModelIndex& index, int role ) const
case Qt::ToolTipRole: {
QString out = "<table>";
QHashIterator<QString, int> iter(number->alternativeNames());
while (iter.hasNext())
while (iter.hasNext()) {
iter.next();
out += QString("<tr><td>%1</td><td>%2</td></tr>").arg(iter.value()).arg(iter.key());
}
out += "</table>";
return out;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment