2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

ConfirmPhoneBox support added.

Limiting StartUrl to 8k symbols to prevent share url text overflow.
Better working with many cases of regular expression switch.
This commit is contained in:
John Preston
2016-07-28 20:01:08 +03:00
parent c0ea6ce346
commit 5df54371b5
26 changed files with 1169 additions and 319 deletions

View File

@@ -1072,7 +1072,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *e) {
if (obj == Application::instance()) {
QString url = static_cast<QFileOpenEvent*>(e)->url().toEncoded().trimmed();
if (url.startsWith(qstr("tg://"), Qt::CaseInsensitive)) {
cSetStartUrl(url);
cSetStartUrl(url.mid(0, 8192));
if (!cStartUrl().isEmpty() && App::main() && App::self()) {
App::main()->openLocalUrl(cStartUrl());
cSetStartUrl(QString());