Skip to content
Snippets Groups Projects
Commit 15a009a6 authored by Edric Milaret's avatar Edric Milaret
Browse files

settings: fix account being modified at load time

Issue: #78824
Change-Id: Ifef04d3114e349dffe8037c4c81275dcf5940b45
parent 194bda28
No related branches found
No related tags found
No related merge requests found
...@@ -53,11 +53,6 @@ AccountDetails::AccountDetails(QWidget *parent) : ...@@ -53,11 +53,6 @@ AccountDetails::AccountDetails(QWidget *parent) :
ui->lrcfg_username->setAlignment(Qt::AlignCenter); ui->lrcfg_username->setAlignment(Qt::AlignCenter);
connect(ui->audioCodecView, SIGNAL(cellChanged(int,int)),
this, SLOT(audio_codec_checked(int, int)));
connect(ui->videoCodecView, SIGNAL(cellChanged(int,int)),
this, SLOT(video_codec_checked(int,int)));
connect(ui->lrcfg_tlsCaListCertificate, SIGNAL(clicked(bool)), this, SLOT(onCertButtonClicked())); connect(ui->lrcfg_tlsCaListCertificate, SIGNAL(clicked(bool)), this, SLOT(onCertButtonClicked()));
connect(ui->lrcfg_tlsCertificate, SIGNAL(clicked(bool)), this, SLOT(onCertButtonClicked())); connect(ui->lrcfg_tlsCertificate, SIGNAL(clicked(bool)), this, SLOT(onCertButtonClicked()));
connect(ui->lrcfg_tlsPrivateKeyCertificate, SIGNAL(clicked(bool)), this, SLOT(onCertButtonClicked())); connect(ui->lrcfg_tlsPrivateKeyCertificate, SIGNAL(clicked(bool)), this, SLOT(onCertButtonClicked()));
...@@ -71,6 +66,9 @@ AccountDetails::~AccountDetails() ...@@ -71,6 +66,9 @@ AccountDetails::~AccountDetails()
void void
AccountDetails::reloadCodec(CodecType type) AccountDetails::reloadCodec(CodecType type)
{ {
ui->audioCodecView->disconnect();
ui->videoCodecView->disconnect();
auto selectedIdx = codecModel_->selectionModel()->currentIndex(); auto selectedIdx = codecModel_->selectionModel()->currentIndex();
if (type != CodecType::VIDEO) { if (type != CodecType::VIDEO) {
...@@ -138,6 +136,10 @@ AccountDetails::reloadCodec(CodecType type) ...@@ -138,6 +136,10 @@ AccountDetails::reloadCodec(CodecType type)
} }
} }
} }
connect(ui->audioCodecView, SIGNAL(cellChanged(int,int)),
this, SLOT(audio_codec_checked(int, int)));
connect(ui->videoCodecView, SIGNAL(cellChanged(int,int)),
this, SLOT(video_codec_checked(int,int)));
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment