bbreslauer / PySciPlot

GNU General Public License v3.0
1 stars 0 forks source link

QWaveComboBox does not save current text correctly upon wave deletion #43

Open bbreslauer opened 13 years ago

bbreslauer commented 13 years ago

If you have a QWaveComboBox selected to a wave, and an entry above that one in the box is deleted, then selected one becomes the wave below the one that was previously selected. This is because the model's data is updated before calling reset, and so by the time QWaveComboBox.beforeReset is called, the model's data has already changed.

Example: Before: Wave1 Wave2 <-- to be deleted Wave3 <-- selected Wave4

After: Wave1 Wave3 Wave4 <-- selected