mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix selecting invalid dive site
This patch fixes an invalid dive site selection when you where typing the name of a dive site for your current dive. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									f1558b86da
								
							
						
					
					
						commit
						d032373caf
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -545,8 +545,8 @@ void DiveLocationLineEdit::fixPopupPosition()
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	view->setGeometry(pos.x(), pos.y(), w, h);
 | 
						view->setGeometry(pos.x(), pos.y(), w, h);
 | 
				
			||||||
	if (!view->currentIndex().isValid()) {
 | 
						if (!view->currentIndex().isValid() && view->model()->rowCount()) {
 | 
				
			||||||
		view->setCurrentIndex(view->model()->index(0, 1));
 | 
							view->setCurrentIndex(view->model()->index(0, 0));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue