mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Language preference: search for the locale instead of the language string
And make sure that you use the language / country delimiter that we use in the file system Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									6b181d6b85
								
							
						
					
					
						commit
						67a226c00a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -37,7 +37,7 @@ void PreferencesLanguage::refreshSettings() | |||
| 	ui->dateFormatEntry->setText(prefs.date_format); | ||||
| 	ui->shortDateFormatEntry->setText(prefs.date_format_short); | ||||
| 	QAbstractItemModel *m = ui->languageDropdown->model(); | ||||
| 	QModelIndexList languages = m->match(m->index(0, 0), Qt::UserRole, prefs.locale.language); | ||||
| 	QModelIndexList languages = m->match(m->index(0, 0), Qt::UserRole, QString(prefs.locale.lang_locale).replace("-", "_")); | ||||
| 	if (languages.count()) | ||||
| 		ui->languageDropdown->setCurrentIndex(languages.first().row()); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue