Cleanup
This commit is contained in:
parent
91049b235a
commit
d9431b173c
1 changed files with 1 additions and 4 deletions
|
|
@ -674,10 +674,7 @@ void ConnectionTreeModel::save(const QString &group_name, const ConnectionConfig
|
||||||
beginInsertRows(parent, idx, idx);
|
beginInsertRows(parent, idx, idx);
|
||||||
SCOPE_EXIT { endInsertRows(); };
|
SCOPE_EXIT { endInsertRows(); };
|
||||||
auto node = std::make_shared<ConnectionConfig>(cc);
|
auto node = std::make_shared<ConnectionConfig>(cc);
|
||||||
int node_idx = new_grp->add(node);
|
new_grp->add(node);
|
||||||
// dataChanged(
|
|
||||||
// createIndex(node_idx, 0, node.get()),
|
|
||||||
// createIndex(node_idx, ColCount-1, node.get()));
|
|
||||||
auto save_res = saveToDb(*node);
|
auto save_res = saveToDb(*node);
|
||||||
if (save_res) {
|
if (save_res) {
|
||||||
throw std::runtime_error("SqlError2");
|
throw std::runtime_error("SqlError2");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue