Commit 4463a727 authored by Jürgen Herrmann's avatar Jürgen Herrmann

fixed unconvertable values in lineedits while editing leading to exceptions in _applyEq()

parent 09b4a2db
......@@ -242,8 +242,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
def _applyEq(self):
""" apply ui settings to eq """
for mm in self._mmaps:
mm.seek(0)
try:
if self._bypassed:
buffer = struct.pack("fffffffffffffffff",
1.0,
......@@ -272,6 +271,12 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
float(self.lineEditGainHigh.text().split(" ")[0]),
float(self.lineEditQHigh.text()),
(self.sliderGain.value() / 10.0 + MIN_GAIN))
except ValueError:
buffer = None
if buffer is None:
return
for mm in self._mmaps:
mm.seek(0)
mm.seek(0)
mm.write(buffer)
self._dirtyFlag = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment