Use operator-> for tray icon biggest size

This commit is contained in:
Ilya Fedin 2021-01-10 16:27:12 +04:00 committed by John Preston
parent ea9813825d
commit f1e0b36f61

View File

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