From e5ae9663c483f87e2b825bcfffbb269cb94d03ee Mon Sep 17 00:00:00 2001 From: eelke Date: Sun, 1 Sep 2019 10:26:42 +0200 Subject: [PATCH] Fix missing return value ConnectionTreeModel::removeRows --- pglab/ConnectionListModel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pglab/ConnectionListModel.cpp b/pglab/ConnectionListModel.cpp index 284484c..8c870ce 100644 --- a/pglab/ConnectionListModel.cpp +++ b/pglab/ConnectionListModel.cpp @@ -627,7 +627,9 @@ bool ConnectionTreeModel::removeRows(int row, int count, const QModelIndex &pare beginRemoveRows(parent, row, row + count - 1); SCOPE_EXIT { endRemoveRows(); }; grp->erase(row, count); + return true; } + return false; } void ConnectionTreeModel::save(const QString &group_name, const ConnectionConfig &cc)