Fixed a long standing stupid issue where the playback window defaulted to "None" as the bus to send to. That's handy, huh? The new default is "From File" and this can now be changed as a preference as well.
This commit is contained in:
@@ -23,6 +23,12 @@ FramePlaybackWindow::FramePlaybackWindow(const QVector<CANFrame> *frames, Serial
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->comboCANBus->addItem(tr("None"));
|
||||
ui->comboCANBus->addItem(tr("0"));
|
||||
ui->comboCANBus->addItem(tr("1"));
|
||||
ui->comboCANBus->addItem(tr("Both"));
|
||||
ui->comboCANBus->addItem(tr("From File"));
|
||||
|
||||
readSettings();
|
||||
|
||||
modelFrames = frames;
|
||||
@@ -37,12 +43,6 @@ FramePlaybackWindow::FramePlaybackWindow(const QVector<CANFrame> *frames, Serial
|
||||
currentSeqItem = NULL;
|
||||
currentSeqNum = -1;
|
||||
|
||||
ui->comboCANBus->addItem(tr("None"));
|
||||
ui->comboCANBus->addItem(tr("0"));
|
||||
ui->comboCANBus->addItem(tr("1"));
|
||||
ui->comboCANBus->addItem(tr("Both"));
|
||||
ui->comboCANBus->addItem(tr("From File"));
|
||||
|
||||
updateFrameLabel();
|
||||
|
||||
connect(ui->btnStepBack, SIGNAL(clicked(bool)), this, SLOT(btnBackOneClick()));
|
||||
@@ -102,6 +102,7 @@ void FramePlaybackWindow::readSettings()
|
||||
ui->cbLoop->setChecked(true);
|
||||
}
|
||||
ui->spinPlaySpeed->setValue(settings.value("Playback/DefSpeed", 5).toInt());
|
||||
ui->comboCANBus->setCurrentIndex(settings.value("Playback/SendingBus", 4).toInt());
|
||||
}
|
||||
|
||||
void FramePlaybackWindow::writeSettings()
|
||||
|
||||
Reference in New Issue
Block a user