diff options
author | Ilya Fedin <fedin-ilja2010@ya.ru> | 2020-06-10 00:36:51 +0400 |
---|---|---|
committer | John Preston <johnprestonmail@gmail.com> | 2020-06-17 20:34:47 +0400 |
commit | 3a91003eeacb038032499d60f3a47e3ef6e4c14f (patch) | |
tree | e63e5039efd956be9a22d748478e533a82c6e634 /Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp | |
parent | a70cc9b9561c9165d693d7bd3e61f4a9c987704d (diff) |
Use gtk clipboard when available to avoid https://bugreports.qt.io/browse/QTBUG-56595
Diffstat (limited to 'Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp')
-rw-r--r-- | Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp b/Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp index 92c0286513..65c43d9c80 100644 --- a/Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp @@ -72,10 +72,10 @@ bool GdkHelperLoadGtk3(QLibrary &lib) { void GdkHelperLoad(QLibrary &lib) { gdk_helper_loaded = GtkLoaded::GtkNone; - if (GdkHelperLoadGtk2(lib)) { - gdk_helper_loaded = GtkLoaded::Gtk2; - } else if (GdkHelperLoadGtk3(lib)) { + if (GdkHelperLoadGtk3(lib)) { gdk_helper_loaded = GtkLoaded::Gtk3; + } else if (GdkHelperLoadGtk2(lib)) { + gdk_helper_loaded = GtkLoaded::Gtk2; } } |