editCopy in connection manager
Allows to edit an existing connection as a new one.
This commit is contained in:
parent
f21a59e030
commit
a3ba4d7c98
5 changed files with 37 additions and 9 deletions
|
|
@ -92,7 +92,17 @@ void ConnectionController::editConnection(QModelIndex index)
|
|||
auto config = ConnectionTreeModel::getConfigFromModelIndex(index);
|
||||
if (config) {
|
||||
ConnectionConfigurationWidget::editExistingInWindow(this, *config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ConnectionController::editCopy(QModelIndex index)
|
||||
{
|
||||
auto config = ConnectionTreeModel::getConfigFromModelIndex(index);
|
||||
if (config) {
|
||||
auto cc = *config;
|
||||
cc.setUuid(QUuid::createUuid());
|
||||
ConnectionConfigurationWidget::editExistingInWindow(this, cc);
|
||||
}
|
||||
}
|
||||
|
||||
void ConnectionController::addGroup()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue