From d9431b173c165c0e2829836112d07c127ae34f86 Mon Sep 17 00:00:00 2001 From: eelke Date: Sun, 1 Sep 2019 06:48:34 +0200 Subject: [PATCH] Cleanup --- pglab/ConnectionListModel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pglab/ConnectionListModel.cpp b/pglab/ConnectionListModel.cpp index e3bff93..284484c 100644 --- a/pglab/ConnectionListModel.cpp +++ b/pglab/ConnectionListModel.cpp @@ -674,10 +674,7 @@ void ConnectionTreeModel::save(const QString &group_name, const ConnectionConfig beginInsertRows(parent, idx, idx); SCOPE_EXIT { endInsertRows(); }; auto node = std::make_shared(cc); - int node_idx = new_grp->add(node); -// dataChanged( -// createIndex(node_idx, 0, node.get()), -// createIndex(node_idx, ColCount-1, node.get())); + new_grp->add(node); auto save_res = saveToDb(*node); if (save_res) { throw std::runtime_error("SqlError2");