Use operator-> for tray icon biggest size
This commit is contained in:
		
							parent
							
								
									ea9813825d
								
							
						
					
					
						commit
						f1e0b36f61
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -257,7 +257,7 @@ QIcon TrayIconGen(int counter, bool muted) {
 | 
				
			||||||
						std::less<>(),
 | 
											std::less<>(),
 | 
				
			||||||
						&QSize::width);
 | 
											&QSize::width);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					if ((*biggestSize).width() > firstAttemptSize.width()) {
 | 
										if (biggestSize->width() > firstAttemptSize.width()) {
 | 
				
			||||||
						currentImageBack = systemIcon
 | 
											currentImageBack = systemIcon
 | 
				
			||||||
							.pixmap(*biggestSize)
 | 
												.pixmap(*biggestSize)
 | 
				
			||||||
							.toImage();
 | 
												.toImage();
 | 
				
			||||||
| 
						 | 
					@ -388,7 +388,7 @@ std::unique_ptr<QTemporaryFile> TrayIconFile(
 | 
				
			||||||
			std::less<>(),
 | 
								std::less<>(),
 | 
				
			||||||
			&QSize::width);
 | 
								&QSize::width);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if ((*biggestSize).width() > firstAttemptSize.width()) {
 | 
							if (biggestSize->width() > firstAttemptSize.width()) {
 | 
				
			||||||
			scalePixmap(icon.pixmap(*biggestSize)).save(ret.get());
 | 
								scalePixmap(icon.pixmap(*biggestSize)).save(ret.get());
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			scalePixmap(firstAttempt).save(ret.get());
 | 
								scalePixmap(firstAttempt).save(ret.get());
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue