Merge pull request #183 from amnezia-vpn/bugfix/installed-container-button
bugfix/installed-container-button
This commit is contained in:
commit
e895c784c7
2 changed files with 2 additions and 1 deletions
|
@ -917,7 +917,7 @@ ErrorCode ServerController::getAlreadyInstalledContainers(const ServerCredential
|
||||||
if (containerInfo.isEmpty()) {
|
if (containerInfo.isEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const static QRegularExpression containerAndPortRegExp("(amnezia[-a-z]*).*?>([0-9]*)/(udp|tcp).*");
|
const static QRegularExpression containerAndPortRegExp("(amnezia[-a-z]*).*?:([0-9]*)->[0-9]*/(udp|tcp).*");
|
||||||
QRegularExpressionMatch containerAndPortMatch = containerAndPortRegExp.match(containerInfo);
|
QRegularExpressionMatch containerAndPortMatch = containerAndPortRegExp.match(containerInfo);
|
||||||
if (containerAndPortMatch.hasMatch()) {
|
if (containerAndPortMatch.hasMatch()) {
|
||||||
QString name = containerAndPortMatch.captured(1);
|
QString name = containerAndPortMatch.captured(1);
|
||||||
|
|
|
@ -21,6 +21,7 @@ void ServerListLogic::onServerListPushbuttonDefaultClicked(int index)
|
||||||
void ServerListLogic::onServerListPushbuttonSettingsClicked(int index)
|
void ServerListLogic::onServerListPushbuttonSettingsClicked(int index)
|
||||||
{
|
{
|
||||||
uiLogic()->m_selectedServerIndex = index;
|
uiLogic()->m_selectedServerIndex = index;
|
||||||
|
uiLogic()->m_installCredentials = m_settings->serverCredentials(index);
|
||||||
uiLogic()->goToPage(Page::ServerSettings);
|
uiLogic()->goToPage(Page::ServerSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue