mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	UI restructure: get rid of "current" pointer in cylinders and weights
Instead always display the display_dive. Now the only thing left to slay is the stagingDive... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									a86aca0378
								
							
						
					
					
						commit
						6b1b2bc919
					
				
					 4 changed files with 59 additions and 49 deletions
				
			
		|  | @ -432,8 +432,8 @@ void MainTab::updateDiveInfo(bool clear) | |||
| 			ui.LocationLabel->setText(tr("Location")); | ||||
| 			ui.NotesLabel->setText(tr("Notes")); | ||||
| 			ui.equipmentTab->setEnabled(true); | ||||
| 			cylindersModel->setDive(&displayed_dive); | ||||
| 			weightModel->setDive(&displayed_dive); | ||||
| 			cylindersModel->updateDive(); | ||||
| 			weightModel->updateDive(); | ||||
| 			taglist_get_tagstring(displayed_dive.tag_list, buf, 1024); | ||||
| 			ui.tagWidget->setText(QString(buf)); | ||||
| 		} | ||||
|  | @ -828,8 +828,8 @@ void MainTab::rejectChanges() | |||
| 		} | ||||
| 		if (selected_dive >= 0) { | ||||
| 			copy_dive(current_dive, &displayed_dive); | ||||
| 			cylindersModel->setDive(&displayed_dive); | ||||
| 			weightModel->setDive(&displayed_dive); | ||||
| 			cylindersModel->updateDive(); | ||||
| 			weightModel->updateDive(); | ||||
| 		} else { | ||||
| 			cylindersModel->clear(); | ||||
| 			weightModel->clear(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue