From f1e0b36f6164a976f75872e61775f1f691e80199 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 10 Jan 2021 16:27:12 +0400 Subject: [PATCH] Use operator-> for tray icon biggest size --- Telegram/SourceFiles/platform/linux/main_window_linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index 80820c163..9bdec9036 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -257,7 +257,7 @@ QIcon TrayIconGen(int counter, bool muted) { std::less<>(), &QSize::width); - if ((*biggestSize).width() > firstAttemptSize.width()) { + if (biggestSize->width() > firstAttemptSize.width()) { currentImageBack = systemIcon .pixmap(*biggestSize) .toImage(); @@ -388,7 +388,7 @@ std::unique_ptr TrayIconFile( std::less<>(), &QSize::width); - if ((*biggestSize).width() > firstAttemptSize.width()) { + if (biggestSize->width() > firstAttemptSize.width()) { scalePixmap(icon.pixmap(*biggestSize)).save(ret.get()); } else { scalePixmap(firstAttempt).save(ret.get());