mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Don't translate the fake DC models
Since the model name is written into the XML file it has to be a literal string that isn't translated. Otherwise a datafile written in one locale behaves differently when opened by Subsurface under a different locale. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									f11b2274ec
								
							
						
					
					
						commit
						f2035bcd79
					
				
					 3 changed files with 5 additions and 6 deletions
				
			
		|  | @ -394,7 +394,7 @@ void ProfileGraphicsView::addControlItems(struct dive *d) | |||
| 	//Put it into the lower right corner of the profile
 | ||||
| 
 | ||||
| 	QString defaultDC(d->dc.model); | ||||
| 	if (defaultDC == tr("manually added dive") || defaultDC == tr("Simulated Dive")) { | ||||
| 	if (defaultDC == "manually added dive" || defaultDC == "planned dive") { | ||||
| 		QAction *editAction = new QAction(QIcon(":edit"), tr("Edit"), this); | ||||
| 		toolBar->addAction(editAction); | ||||
| 		connect(editAction, SIGNAL(triggered()), mainWindow(), SLOT(editCurrentDive())); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue