Add back in the ability to suspend/resume all buses from the main

screen. Whoops, it got deleted by accident!
This commit is contained in:
Collin Kidder
2019-03-14 19:32:14 -04:00
parent 1d218774dc
commit c157da0a90
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -216,6 +216,16 @@ void ConnectionWindow::connectionStatus(CANConStatus pStatus)
connModel->refresh(); connModel->refresh();
} }
void ConnectionWindow::setSuspendAll(bool pSuspend)
{
QList<CANConnection*>& conns = CANConManager::getInstance()->getConnections();
foreach(CANConnection* conn_p, conns)
conn_p->suspend(pSuspend);
connModel->refresh();
}
void ConnectionWindow::saveBusSettings() void ConnectionWindow::saveBusSettings()
{ {
int selIdx = ui->tableConnections->currentIndex().row(); int selIdx = ui->tableConnections->currentIndex().row();
+2
View File
@@ -37,6 +37,8 @@ signals:
public slots: public slots:
void getDebugText(QString debugText); void getDebugText(QString debugText);
void setSuspendAll(bool pSuspend);
private slots: private slots:
void currentRowChanged(const QModelIndex &current, const QModelIndex &previous); void currentRowChanged(const QModelIndex &current, const QModelIndex &previous);