1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

use utf-8 strings for audio device specifiers

This commit is contained in:
Nils Fenner 2016-01-11 00:47:59 +01:00 committed by tux3
parent e1f7e553ab
commit 086e35d106
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -286,11 +286,7 @@ void AVForm::getAudioInDevices()
while (*pDeviceList)
{
int len = strlen(pDeviceList);
#ifdef Q_OS_WIN
QString inDev = QString::fromUtf8(pDeviceList, len);
#else
QString inDev = QString::fromLocal8Bit(pDeviceList, len);
#endif
bodyUI->inDevCombobox->addItem(inDev);
if (settingsInDev == inDev)
inDevIndex = bodyUI->inDevCombobox->count()-1;
@ -317,11 +313,7 @@ void AVForm::getAudioOutDevices()
while (*pDeviceList)
{
int len = strlen(pDeviceList);
#ifdef Q_OS_WIN
QString outDev = QString::fromUtf8(pDeviceList, len);
#else
QString outDev = QString::fromLocal8Bit(pDeviceList, len);
#endif
bodyUI->outDevCombobox->addItem(outDev);
if (settingsOutDev == outDev)
{