Commit 3f5aba9b authored by PIERSON Julie's avatar PIERSON Julie
Browse files

band name input by user is ok

parent 6d973c92
......@@ -129,20 +129,11 @@ class BandTableWidget(BASE, WIDGET):
if not item:
return
if column == 0:
d, ok = QInputDialog.getDouble(None,
self.tr('Enter lower elevation class bound'),
self.tr('Elevation'),
float(item.text(0)),
decimals=2)
if ok:
item.setText(0, str(d))
elif column == 1:
d, ok = QInputDialog.getDouble(None,
self.tr('Enter upper elevation class bound'),
self.tr('Elevation'),
float(item.text(1)),
decimals=2)
if column == 1:
d, ok = QInputDialog.getText(None,
self.tr('Band name'),
self.tr('Enter new band name')
)
if ok:
item.setText(1, str(d))
......
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