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

minor style tweaks

This commit is contained in:
Dubslow 2014-12-16 18:05:13 -06:00
parent e0cb122abe
commit fc749880eb
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA
4 changed files with 8 additions and 5 deletions

View File

@ -32,6 +32,7 @@ void AudioFilterer::closeFilter()
{
if (filter)
kill_filter_audio(filter);
filter = nullptr;
}

View File

@ -81,7 +81,6 @@ void Core::prepareCall(int friendId, int callId, ToxAv* toxav, bool videoEnabled
}
else
{
if (filterer[callId])
delete filterer[callId];
filterer[callId] = nullptr;
}

View File

@ -900,11 +900,13 @@ void Settings::setOutDev(const QString& deviceSpecifier)
outDev = deviceSpecifier;
}
bool Settings::getFilterAudio() const{
bool Settings::getFilterAudio() const
{
return filterAudio;
}
void Settings::setFilterAudio(bool newValue){
void Settings::setFilterAudio(bool newValue)
{
filterAudio = newValue;
}

View File

@ -197,6 +197,7 @@ void AVForm::onOutDevChanged(const QString& deviceDescriptor)
Audio::openOutput(deviceDescriptor);
}
void AVForm::onFilterAudioToggled(bool filterAudio){
void AVForm::onFilterAudioToggled(bool filterAudio)
{
Settings::getInstance().setFilterAudio(filterAudio);
}