mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-28 16:29:53 +00:00
telegram.me links open without confirmation box.
EmailClickHandler removed, only UrlClickHandler left. Some errors lead to @spambot instead of site FAQ.
This commit is contained in:
@@ -1062,8 +1062,8 @@ bool Window::eventFilter(QObject *obj, QEvent *e) {
|
||||
|
||||
case QEvent::FileOpen:
|
||||
if (obj == Application::instance()) {
|
||||
QString url = static_cast<QFileOpenEvent*>(e)->url().toEncoded();
|
||||
if (!url.trimmed().midRef(0, 5).compare(qsl("tg://"), Qt::CaseInsensitive)) {
|
||||
QString url = static_cast<QFileOpenEvent*>(e)->url().toEncoded().trimmed();
|
||||
if (url.startsWith(qstr("tg://"), Qt::CaseInsensitive)) {
|
||||
cSetStartUrl(url);
|
||||
if (!cStartUrl().isEmpty() && App::main() && App::self()) {
|
||||
App::main()->openLocalUrl(cStartUrl());
|
||||
|
||||
Reference in New Issue
Block a user