mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Changed: Specify server to use (the one of default profile)
--HG-- branch : develop
This commit is contained in:
parent
cc8a200156
commit
9744b44b6e
2 changed files with 3 additions and 0 deletions
|
@ -216,6 +216,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
COperationDialog dialog;
|
COperationDialog dialog;
|
||||||
|
|
||||||
|
dialog.setCurrentServerId(config.getProfile().server);
|
||||||
dialog.setOperation(OperationUninstall);
|
dialog.setOperation(OperationUninstall);
|
||||||
dialog.setUninstallComponents(components);
|
dialog.setUninstallComponents(components);
|
||||||
|
|
||||||
|
@ -244,6 +245,7 @@ int main(int argc, char *argv[])
|
||||||
if (step != Done)
|
if (step != Done)
|
||||||
{
|
{
|
||||||
COperationDialog dialog;
|
COperationDialog dialog;
|
||||||
|
dialog.setCurrentServerId(config.getProfile().server);
|
||||||
dialog.setOperation(config.getSrcServerDirectory().isEmpty() ? OperationInstall:OperationMigrate);
|
dialog.setOperation(config.getSrcServerDirectory().isEmpty() ? OperationInstall:OperationMigrate);
|
||||||
|
|
||||||
if (!dialog.exec()) return 1;
|
if (!dialog.exec()) return 1;
|
||||||
|
|
|
@ -40,6 +40,7 @@ public:
|
||||||
|
|
||||||
void setOperation(OperationType operation);
|
void setOperation(OperationType operation);
|
||||||
void setUninstallComponents(const SComponents &components);
|
void setUninstallComponents(const SComponents &components);
|
||||||
|
void setCurrentServerId(const QString &serverId) { m_currentServerId = serverId; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void onAbortClicked();
|
void onAbortClicked();
|
||||||
|
|
Loading…
Reference in a new issue