Changed: Specify server to use (the one of default profile)

This commit is contained in:
kervala 2016-10-11 18:04:01 +02:00
parent 87a775d30f
commit 4f64796dae
2 changed files with 3 additions and 0 deletions

View file

@ -216,6 +216,7 @@ int main(int argc, char *argv[])
COperationDialog dialog;
dialog.setCurrentServerId(config.getProfile().server);
dialog.setOperation(OperationUninstall);
dialog.setUninstallComponents(components);
@ -244,6 +245,7 @@ int main(int argc, char *argv[])
if (step != Done)
{
COperationDialog dialog;
dialog.setCurrentServerId(config.getProfile().server);
dialog.setOperation(config.getSrcServerDirectory().isEmpty() ? OperationInstall:OperationMigrate);
if (!dialog.exec()) return 1;

View file

@ -40,6 +40,7 @@ public:
void setOperation(OperationType operation);
void setUninstallComponents(const SComponents &components);
void setCurrentServerId(const QString &serverId) { m_currentServerId = serverId; }
public slots:
void onAbortClicked();