Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 1: [PATCH 01/17] build(roots): establish v31 portability foundation

src/qt/optionsdialog.cpp

Before: src/qt/optionsdialog.cpp · After: src/qt/optionsdialog.cpp

File metadata
index 12446206023434d930b47dcd25b847cabbcde182..679351f45e14461bcedadade81f180dea7c53192 100644

Download original patch · Release notes

Diff rows 1–11 of 11. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

src/qt/optionsdialog.cpp CHANGED
@@ -164,7 +164,11 @@ OptionsDialog::OptionsDialog(QWidget* parent, bool enableWallet)
164
164
  {
165
165
  /** display language strings as "native language - native country/territory (locale name)", e.g. "Deutsch - Deutschland (de)" */
166
166
  ui->lang->addItem(locale.nativeLanguageName() + QString(" - ") +
167
+ #if QT_VERSION >= QT_VERSION_CHECK(6, 2, 0)
167
168
  locale.nativeTerritoryName() +
169
+ #else
170
+ locale.nativeCountryName() +
171
+ #endif
168
172
  QString(" (") + langStr + QString(")"), QVariant(langStr));
169
173
 
170
174
  }