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

build: Fix build with Qt 5.3

regressed in 61a88862

Refs #68053
parent 29ff38c6
Branches
No related tags found
No related merge requests found
......@@ -66,7 +66,9 @@ bool BootstrapModelPrivate::save()
Lines* l = m_lines[i];
if (l->hostname.isEmpty() && l->port == -1) {
q_ptr->beginRemoveRows(QModelIndex(),i,i);
m_lines.removeAll(l);
const int idx = m_lines.indexOf(l);
if (idx >= 0)
m_lines.removeAt(idx);
q_ptr->endRemoveRows();
val = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment