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:
Collin Kidder
2015-06-30 21:06:35 -04:00
parent 8e7011952f
commit cfc296aab8
4 changed files with 31 additions and 7 deletions
+7 -6
View File
@@ -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()