Commit a72b5ee6 authored by Andreas Traczyk's avatar Andreas Traczyk

preview: fix too many calls to stopPreview

Change-Id: I2b42d3d4c5a341333e9b985c488dbd916da2326f
parent 12c404bd
......@@ -304,7 +304,6 @@ void MainWindow::changeEvent(QEvent* e)
void MainWindow::closeEvent(QCloseEvent* event)
{
LRCInstance::avModel().stopPreview();
QSettings settings("jami.net", "Jami");
if (LRCInstance::accountModel().getAccountList().size() &&
settings.value(SettingsKey::closeOrMinimized).toBool()) {
......
......@@ -464,10 +464,10 @@ void SettingsWidget::updateAccountInfoDisplayed()
}
// sip avatar set
setAvatar(ui->currentSIPAccountAvatar, true);
setAvatar(ui->currentSIPAccountAvatar, false);
// jami avatar set
setAvatar(ui->currentAccountAvatar, true);
setAvatar(ui->currentAccountAvatar, false);
ui->accountEnableCheckBox->setChecked(accInfo.enabled);
ui->accountSIPEnableCheckBox->setChecked(accInfo.enabled);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment