Make it more obvious when a image can be exported as a png and when not
This commit is contained in:
		
							parent
							
								
									5b07c96ce7
								
							
						
					
					
						commit
						0ddaa0bacd
					
				
					 3 changed files with 34 additions and 25 deletions
				
			
		| 
						 | 
				
			
			@ -114,7 +114,7 @@ void MainWindow::openImage()
 | 
			
		|||
				return;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if(matf.isOpened() && (!image.data || image.type() != CV_32FC1))
 | 
			
		||||
			if(matf.isOpened() && !image.data)
 | 
			
		||||
			{
 | 
			
		||||
				image.release();
 | 
			
		||||
				QMessageBox::warning(this, "Invalid file", "File selected dose not contain a valid image");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue