mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
UI: Use byte sequence for non-breaking spaces
Use explicit UTF-8 byte sequence for the "no-break space" character. Prevents issues with certain editors, and fixes the following compiler warning on Visual C++: warning C4819: The file contains a character that cannot be represented in the current code page (X). Save the file in Unicode format to prevent data loss
This commit is contained in:
parent
6ba5e31d05
commit
c59a796a8f
@ -1402,6 +1402,8 @@ void OBSBasicSettings::LoadAudioDevices()
|
||||
}
|
||||
}
|
||||
|
||||
#define NBSP "\xC2\xA0"
|
||||
|
||||
void OBSBasicSettings::LoadAudioSources()
|
||||
{
|
||||
auto layout = new QFormLayout();
|
||||
@ -1436,7 +1438,7 @@ void OBSBasicSettings::LoadAudioSources()
|
||||
form->addRow(ptmCB);
|
||||
|
||||
auto ptmSB = new SilentUpdateSpinBox();
|
||||
ptmSB->setSuffix(" ms");
|
||||
ptmSB->setSuffix(NBSP "ms");
|
||||
ptmSB->setRange(0, INT_MAX);
|
||||
ptmSB->setValue(obs_source_get_push_to_mute_delay(source));
|
||||
form->addRow(ptmDelay, ptmSB);
|
||||
@ -1447,7 +1449,7 @@ void OBSBasicSettings::LoadAudioSources()
|
||||
form->addRow(pttCB);
|
||||
|
||||
auto pttSB = new SilentUpdateSpinBox();
|
||||
pttSB->setSuffix(" ms");
|
||||
pttSB->setSuffix(NBSP "ms");
|
||||
pttSB->setRange(0, INT_MAX);
|
||||
pttSB->setValue(obs_source_get_push_to_talk_delay(source));
|
||||
form->addRow(pttDelay, pttSB);
|
||||
|
Loading…
Reference in New Issue
Block a user