Improve connection manager #80

Merged
eelke merged 12 commits from improve-connection-manager into master 2019-09-01 08:19:23 +00:00
Showing only changes of commit d9431b173c - Show all commits

View file

@ -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<ConnectionConfig>(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");