forked from Ivasoft/DSView
fix: on fft options dialog, app crashed when 'sample interval' no select value
This commit is contained in:
@@ -282,6 +282,10 @@ void FftOptions::len_changed(int index)
|
||||
_interval_combobox->addItem(QString::number(i),
|
||||
QVariant::fromValue(i));
|
||||
}
|
||||
|
||||
if (pre_index >= _interval_combobox->count()){
|
||||
pre_index = 0;
|
||||
}
|
||||
_interval_combobox->setCurrentIndex(pre_index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user