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

Fix call on null object, unititialized bool

This commit is contained in:
tux3 2015-05-19 19:40:01 +02:00
parent 9fdf382d7b
commit 4306f87df4
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 7 additions and 3 deletions

View File

@ -156,7 +156,9 @@ void Audio::openInput(const QString& inDevDescr)
else
qDebug() << "Opening audio input "<<inDevDescr;
Core::getInstance()->resetCallSources(); // Force to regen each group call's sources
Core* core = Core::getInstance();
if (core)
core->resetCallSources(); // Force to regen each group call's sources
// Restart the capture if necessary
if (userCount.load() != 0 && alInDev)
@ -210,7 +212,9 @@ void Audio::openOutput(const QString& outDevDescr)
qDebug() << "Opening audio output " + outDevDescr;
}
Core::getInstance()->resetCallSources(); // Force to regen each group call's sources
Core* core = Core::getInstance();
if (core)
core->resetCallSources(); // Force to regen each group call's sources
}
void Audio::closeInput()

View File

@ -50,7 +50,7 @@
ChatForm::ChatForm(Friend* chatFriend)
: f(chatFriend)
, callId(0)
, callId{0}, isTyping{false}
{
nameLabel->setText(f->getDisplayedName());