2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Handle socks internal links.

This commit is contained in:
John Preston
2017-06-27 23:11:38 +03:00
parent 1968ca07de
commit 82912f4a0b
15 changed files with 147 additions and 96 deletions

View File

@@ -218,7 +218,7 @@ void MainWindow::clearPasscode() {
} else {
t_assert(_main != nullptr);
_main->showAnimated(bg, true);
_main->checkStartUrl();
Messenger::Instance().checkStartUrl();
}
}
@@ -609,9 +609,7 @@ bool MainWindow::eventFilter(QObject *object, QEvent *e) {
QString url = static_cast<QFileOpenEvent*>(e)->url().toEncoded().trimmed();
if (url.startsWith(qstr("tg://"), Qt::CaseInsensitive)) {
cSetStartUrl(url.mid(0, 8192));
if (_main) {
_main->checkStartUrl();
}
Messenger::Instance().checkStartUrl();
}
activate();
}