Always try to open new provided URL.

Fixes #6941.
This commit is contained in:
John Preston 2020-05-12 16:15:22 +04:00
parent 6f760d513e
commit 2ede53e0ee
1 changed files with 2 additions and 5 deletions

View File

@ -373,11 +373,8 @@ void Sandbox::readClients() {
toSend.append(_escapeFrom7bit(cmds.mid(from + 5, to - from - 5))); toSend.append(_escapeFrom7bit(cmds.mid(from + 5, to - from - 5)));
} }
} else if (cmd.startsWith(qsl("OPEN:"))) { } else if (cmd.startsWith(qsl("OPEN:"))) {
auto activateRequired = true; startUrl = _escapeFrom7bit(cmds.mid(from + 5, to - from - 5)).mid(0, 8192);
if (cStartUrl().isEmpty()) { auto activateRequired = StartUrlRequiresActivate(startUrl);
startUrl = _escapeFrom7bit(cmds.mid(from + 5, to - from - 5)).mid(0, 8192);
activateRequired = StartUrlRequiresActivate(startUrl);
}
if (activateRequired) { if (activateRequired) {
execExternal("show"); execExternal("show");
} }