mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix UI issue with location management
The index in the fixpopup function was incorrect which caused the user to need TWO cursor down presses to move to the second element. I changed the index value so the user now needs only one key press to traverse up/dowm. Fixes #954 Signed-off-by: krishan Chopra <choprakrishan61@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									15a014105b
								
							
						
					
					
						commit
						b42dd941c1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -569,7 +569,7 @@ void DiveLocationLineEdit::fixPopupPosition()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	view->setGeometry(pos.x(), pos.y(), w, h);
 | 
						view->setGeometry(pos.x(), pos.y(), w, h);
 | 
				
			||||||
	if (!view->currentIndex().isValid() && view->model()->rowCount()) {
 | 
						if (!view->currentIndex().isValid() && view->model()->rowCount()) {
 | 
				
			||||||
		view->setCurrentIndex(view->model()->index(0, 0));
 | 
							view->setCurrentIndex(view->model()->index(0, 1));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue