Fix to no longer default to new graphs being the first DBC signal loaded.

The previous behavior always loaded that first signal and that made graphing custom things more annoying as the signal parameters all had to be deleted first.
This commit is contained in:
Collin Kidder
2015-08-18 20:07:04 -04:00
parent 6c61d3edb9
commit d298aea249
3 changed files with 14 additions and 0 deletions
+1
View File
@@ -521,6 +521,7 @@ void GraphingWindow::showParamsDialog(int idx = -1)
{
thisDialog->setParams(graphParams[idx]);
}
else thisDialog->clearParams();
if (thisDialog->exec() == QDialog::Accepted)
{
+12
View File
@@ -49,6 +49,18 @@ void NewGraphDialog::colorSwatchClick()
}
void NewGraphDialog::clearParams()
{
ui->txtID->clear();
ui->txtBias->clear();
ui->txtMask->clear();
ui->txtScale->clear();
ui->txtStride->clear();
ui->txtName->clear();
ui->txtData->clear();
}
void NewGraphDialog::setParams(GraphParams &params)
{
ui->txtID->setText(Utility::formatNumber(params.ID));
+1
View File
@@ -18,6 +18,7 @@ public:
~NewGraphDialog();
void getParams(GraphParams &);
void setParams(GraphParams &);
void clearParams();
private slots:
void addButtonClicked();