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());