mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
StripSpaces: only strip spaces
StripWhitespace maintains old behavior
This commit is contained in:
@ -1150,7 +1150,7 @@ void MenuBar::CheckNAND()
|
||||
{
|
||||
title_listings += " - " + banner.GetName();
|
||||
const std::string description = banner.GetDescription();
|
||||
if (!StripSpaces(description).empty())
|
||||
if (!StripWhitespace(description).empty())
|
||||
title_listings += " - " + description;
|
||||
}
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ void BroadbandAdapterSettingsDialog::InitControls()
|
||||
|
||||
void BroadbandAdapterSettingsDialog::SaveAddress()
|
||||
{
|
||||
const std::string bba_new_address(StripSpaces(m_address_input->text().toStdString()));
|
||||
const std::string bba_new_address(StripWhitespace(m_address_input->text().toStdString()));
|
||||
|
||||
switch (m_bba_type)
|
||||
{
|
||||
|
@ -124,8 +124,8 @@ void USBDeviceAddToWhitelistDialog::RefreshDeviceList()
|
||||
|
||||
void USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist()
|
||||
{
|
||||
const std::string vid_string(StripSpaces(device_vid_textbox->text().toStdString()));
|
||||
const std::string pid_string(StripSpaces(device_pid_textbox->text().toStdString()));
|
||||
const std::string vid_string(StripWhitespace(device_vid_textbox->text().toStdString()));
|
||||
const std::string pid_string(StripWhitespace(device_pid_textbox->text().toStdString()));
|
||||
if (!IsValidUSBIDString(vid_string))
|
||||
{
|
||||
// i18n: Here, VID means Vendor ID (for a USB device).
|
||||
|
Reference in New Issue
Block a user