Use the File::OpenUrl routine in IV

This commit is contained in:
Ilya Fedin 2024-03-18 09:57:44 +04:00 committed by John Preston
parent 0e428aebdb
commit 602b0b5d9b

View file

@ -47,7 +47,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "window/window_session_controller.h" #include "window/window_session_controller.h"
#include "window/window_session_controller_link_info.h" #include "window/window_session_controller_link_info.h"
#include <QtGui/QDesktopServices>
#include <QtGui/QGuiApplication> #include <QtGui/QGuiApplication>
namespace Iv { namespace Iv {
@ -832,7 +831,7 @@ void Instance::show(
processJoinChannel(event.context); processJoinChannel(event.context);
break; break;
case Type::OpenLinkExternal: case Type::OpenLinkExternal:
QDesktopServices::openUrl(event.url); File::OpenUrl(event.url);
closeAll(); closeAll();
break; break;
case Type::OpenMedia: case Type::OpenMedia: