mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	citra_qt/configure_system: fix string comparison (#4830)
country_names has type std::array<char*>. Pointer comparison to test empty string is wrong
This commit is contained in:
		
							parent
							
								
									1c5a55b3cb
								
							
						
					
					
						commit
						e689847b11
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -2,6 +2,7 @@ | |||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include <cstring> | ||||
| #include <QMessageBox> | ||||
| #include "citra_qt/configuration/configure_system.h" | ||||
| #include "citra_qt/ui_settings.h" | ||||
|  | @ -227,7 +228,7 @@ ConfigureSystem::ConfigureSystem(QWidget* parent) : QWidget(parent), ui(new Ui:: | |||
|     connect(ui->button_regenerate_console_id, &QPushButton::clicked, this, | ||||
|             &ConfigureSystem::RefreshConsoleID); | ||||
|     for (u8 i = 0; i < country_names.size(); i++) { | ||||
|         if (country_names.at(i) != "") { | ||||
|         if (std::strcmp(country_names.at(i), "") != 0) { | ||||
|             ui->combo_country->addItem(tr(country_names.at(i)), i); | ||||
|         } | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue