From 6c3b5b9a0a7c0f9233ecd17eac66ab7b5e29738f Mon Sep 17 00:00:00 2001
From: Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>
Date: Mon, 9 Mar 2015 19:31:32 +0000
Subject: [PATCH] build: Fix build with Qt 5.3

regressed in 61a88862bcde787cefe7f58c48d04e5254dbd743

Refs #68053
---
 src/bootstrapmodel.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bootstrapmodel.cpp b/src/bootstrapmodel.cpp
index 6617ae34..e1de3cec 100644
--- a/src/bootstrapmodel.cpp
+++ b/src/bootstrapmodel.cpp
@@ -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;
       }
-- 
GitLab