Skip to content

Commit

Permalink
Use operator-> for tray icon biggest size
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Jan 22, 2021
1 parent ea98138 commit f1e0b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Telegram/SourceFiles/platform/linux/main_window_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -388,7 +388,7 @@ std::unique_ptr<QTemporaryFile> 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());
Expand Down

0 comments on commit f1e0b36

Please sign in to comment.