From adb00871949aab2513a55bc0ec01e2ca11df8474 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Fri, 3 Jul 2020 09:19:21 +0300 Subject: [PATCH] Fix build on Linux --- Telegram/SourceFiles/window/main_window.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/window/main_window.cpp b/Telegram/SourceFiles/window/main_window.cpp index 98bd43d46..d0f83c6f3 100644 --- a/Telegram/SourceFiles/window/main_window.cpp +++ b/Telegram/SourceFiles/window/main_window.cpp @@ -137,9 +137,7 @@ QIcon CreateIcon(Main::Session *session) { #if defined Q_OS_UNIX && !defined Q_OS_MAC if ( - (!account - || !account->sessionExists() - || !account->session().supportMode()) + (!session || !session->supportMode()) && cCustomAppIcon() == 0 && !QFileInfo::exists(cWorkingDir() + "tdata/icon.png")) { return QIcon::fromTheme(Platform::GetIconName(), result);