Basic support for passing postgresql uri on the commandline
This commit is contained in:
parent
4b4c95e57e
commit
4caccf1000
11 changed files with 453 additions and 192 deletions
|
|
@ -40,7 +40,6 @@ void ConnectionController::init()
|
|||
m_connectionTreeModel->load();
|
||||
|
||||
m_connectionManagerWindow = new ConnectionManagerWindow(m_masterController, nullptr);
|
||||
m_connectionManagerWindow->show();
|
||||
}
|
||||
|
||||
void ConnectionController::showConnectionManager()
|
||||
|
|
@ -55,16 +54,21 @@ void ConnectionController::openSqlWindowForConnection(QModelIndex index)
|
|||
|
||||
if (retrieveConnectionPassword(*config)) {
|
||||
m_connectionTreeModel->save(*config);
|
||||
// TODO instead of directly openening the mainwindow
|
||||
// do async connect and only open window when we have
|
||||
// working connection
|
||||
auto w = new DatabaseWindow(m_masterController, nullptr);
|
||||
w->setAttribute( Qt::WA_DeleteOnClose );
|
||||
w->setConfig(*config);
|
||||
w->showMaximized();
|
||||
|
||||
openSqlWindowForConnection(*config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ConnectionController::openSqlWindowForConnection(const ConnectionConfig &config)
|
||||
{
|
||||
// TODO instead of directly openening the mainwindow
|
||||
// do async connect and only open window when we have
|
||||
// working connection
|
||||
auto w = new DatabaseWindow(m_masterController, nullptr);
|
||||
w->setAttribute( Qt::WA_DeleteOnClose );
|
||||
w->setConfig(config);
|
||||
w->showMaximized();
|
||||
}
|
||||
|
||||
void ConnectionController::openBackupDlgForConnection(QModelIndex index)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue