Backup functionality working, the UI still needs work.
This commit is contained in:
parent
d0ea9dfa0c
commit
73528ca965
12 changed files with 606 additions and 194 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "ConnectionListModel.h"
|
||||
#include "MainWindow.h"
|
||||
#include "ServerWindow.h"
|
||||
#include "BackupDialog.h"
|
||||
|
||||
|
||||
MasterController::MasterController(QObject *parent) : QObject(parent)
|
||||
|
|
@ -45,6 +46,18 @@ void MasterController::openSqlWindowForConnection(int connection_index)
|
|||
|
||||
}
|
||||
|
||||
void MasterController::openBackupDlgForConnection(int connection_index)
|
||||
{
|
||||
auto cc = m_connectionListModel->get(connection_index);
|
||||
m_connectionListModel->save(connection_index);
|
||||
if (cc.valid()) {
|
||||
auto w = new BackupDialog(nullptr); //new ServerWindow(this, nullptr);
|
||||
w->setAttribute( Qt::WA_DeleteOnClose );
|
||||
w->setConfig(cc.get());
|
||||
w->show();
|
||||
}
|
||||
}
|
||||
|
||||
void MasterController::openServerWindowForConnection(int connection_index)
|
||||
{
|
||||
auto cc = m_connectionListModel->get(connection_index);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue