Commit b3c3372d authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

fixed issue #52 (error when changing sensor names)

parent 0b640167
......@@ -1401,8 +1401,8 @@ class MapViewRenderSettingsV2(QgsCollapsibleGroupBox, loadUI('mapviewrendersetti
self.applyStyle()
def onSensorNameChanged(self, newName):
self.setTitle(self.sensor.name())
self.actionApplyStyle.setToolTip('Apply style to all map view images from "{}"'.format(self.sensor.name()))
self.setTitle(self.mSensor.name())
self.actionApplyStyle.setToolTip('Apply style to all map view images from "{}"'.format(self.mSensor.name()))
def currentRenderWidget(self):
......
......@@ -745,7 +745,7 @@ class TimeSeriesTableModel(QAbstractTableModel):
self.dataChanged.emit(idx, idx)
def sensorsChanged(self, sensor):
i = self.mColumnNames.index('sensor')
i = self.mColumnNames.index(self.cnSensor)
idx0 = self.createIndex(0, i)
idx1 = self.createIndex(self.rowCount(), i)
self.dataChanged.emit(idx0, idx1)
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>312</width>
<height>231</height>
<width>322</width>
<height>213</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -75,8 +75,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>289</width>
<height>225</height>
<width>299</width>
<height>500</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -88,7 +88,7 @@
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
<height>500</height>
</size>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
......
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