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

Save video dev name in settings

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2015-05-15 22:58:28 +02:00 committed by tux3
parent 63fe107c2e
commit e5684a4bbf

View File

@ -102,7 +102,9 @@ void AVForm::onVideoDevChanged(int index)
camVideoSurface->setSource(nullptr);
if (camera)
delete camera;
camera = new CameraSource(videoDeviceList[index].first);
QString dev = videoDeviceList[index].first;
Settings::getInstance().setVideoDev(dev);
camera = new CameraSource(dev);
camVideoSurface->setSource(camera);
}