Skip to content

Commit

Permalink
Fixed a bug in "Devices" dialog, where the application would crash be…
Browse files Browse the repository at this point in the history
…cause of too many identical connections being made to the same objects.

Signed-off-by: Angelo DeLuca <[email protected]>
  • Loading branch information
AngeloD2022 committed Jun 15, 2020
1 parent c2534c6 commit 97545a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devicesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ DevicesDialog::DevicesDialog(WifiApi *client, QWidget *parent) :
this->downLine = new QLineSeries();
this->upLine = new QLineSeries();
chartView = new QChartView();
connect(updateInfoTimer, SIGNAL(timeout()), this, SLOT(updateData()));
refreshUi();
}

Expand All @@ -43,7 +44,7 @@ void DevicesDialog::refreshUi()

QGridLayout *layout = new QGridLayout;
layout->addWidget(chartView);
connect(updateInfoTimer,SIGNAL(timeout()),this,SLOT(updateData()));

ui->statsBox->setLayout(layout);
for(WifiApi::Station* e : system->devices){

Expand Down

0 comments on commit 97545a2

Please sign in to comment.