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:
@@ -521,6 +521,7 @@ void GraphingWindow::showParamsDialog(int idx = -1)
|
||||
{
|
||||
thisDialog->setParams(graphParams[idx]);
|
||||
}
|
||||
else thisDialog->clearParams();
|
||||
|
||||
if (thisDialog->exec() == QDialog::Accepted)
|
||||
{
|
||||
|
||||
@@ -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 ¶ms)
|
||||
{
|
||||
ui->txtID->setText(Utility::formatNumber(params.ID));
|
||||
|
||||
@@ -18,6 +18,7 @@ public:
|
||||
~NewGraphDialog();
|
||||
void getParams(GraphParams &);
|
||||
void setParams(GraphParams &);
|
||||
void clearParams();
|
||||
|
||||
private slots:
|
||||
void addButtonClicked();
|
||||
|
||||
Reference in New Issue
Block a user