Skip to content
Snippets Groups Projects
Commit 26ba2308 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

UI: video settings

Fix device selection in case when device name contains non-breaking space.

Change-Id: Ie6d168d9c6e76a9b6123a3516d70510038813e04
parent 456cd816
No related branches found
No related tags found
No related merge requests found
...@@ -261,7 +261,9 @@ QString currentVideoDevice; ...@@ -261,7 +261,9 @@ QString currentVideoDevice;
currentVideoDevice = defaultDevice; currentVideoDevice = defaultDevice;
try { try {
auto settings = avModel->getDeviceSettings(defaultDevice); auto settings = avModel->getDeviceSettings(defaultDevice);
[videoDevicesList selectItemWithTitle: settings.name.toNSString()]; NSString *name = settings.name.toNSString();
name = [name stringByReplacingOccurrencesOfString:@" " withString:@" "];
[videoDevicesList selectItemWithTitle: name];
} catch (...) {} } catch (...) {}
[self devicesChanged]; [self devicesChanged];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment