From b919a0627a29ce82208367de427f5f2a1f200286 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 23 Jan 2021 04:39:58 +0400 Subject: [PATCH] Ensure GtkIntegration::load() is called only once --- Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp b/Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp index 2d677e4414..8367a07f5f 100644 --- a/Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp @@ -316,6 +316,7 @@ GtkIntegration *GtkIntegration::Instance() { } void GtkIntegration::load() { + Expects(!GtkLoaded); DEBUG_LOG(("Loading GTK")); QLibrary lib_gtk;