mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	cleanup: remove MainTab::modified
This field was not set to true since introducing undo of dive fields. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									1eb8f7cbaa
								
							
						
					
					
						commit
						0306109e95
					
				
					 2 changed files with 1 additions and 5 deletions
				
			
		|  | @ -50,7 +50,6 @@ struct Completers { | |||
| 
 | ||||
| MainTab::MainTab(QWidget *parent) : QTabWidget(parent), | ||||
| 	editMode(NONE), | ||||
| 	modified(false), | ||||
| 	lastSelectedDive(true), | ||||
| 	lastTabSelectedDive(0), | ||||
| 	lastTabSelectedDiveTrip(0), | ||||
|  | @ -211,7 +210,6 @@ void MainTab::enableEdition(EditMode newEditMode) | |||
| { | ||||
| 	if (((newEditMode == DIVE || newEditMode == NONE) && current_dive == NULL) || editMode != NONE) | ||||
| 		return; | ||||
| 	modified = false; | ||||
| 	if ((newEditMode == DIVE || newEditMode == NONE) && | ||||
| 	    current_dive->dc.model && | ||||
| 	    strcmp(current_dive->dc.model, "manually added dive") == 0) { | ||||
|  | @ -592,8 +590,7 @@ void MainTab::rejectChanges() | |||
| 	EditMode lastMode = editMode; | ||||
| 
 | ||||
| 	if (lastMode != NONE && current_dive && | ||||
| 	    (modified || | ||||
| 	     !cylinders_equal(current_dive, &displayed_dive) || | ||||
| 	    (!cylinders_equal(current_dive, &displayed_dive) || | ||||
| 	     !weightsystems_equal(current_dive, &displayed_dive))) { | ||||
| 		if (QMessageBox::warning(MainWindow::instance(), TITLE_OR_TEXT(tr("Discard the changes?"), | ||||
| 									       tr("You are about to discard your changes.")), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue