mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Use the File::OpenUrl routine in IV
This commit is contained in:
parent
0e428aebdb
commit
602b0b5d9b
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue