Skip to content

Commit 0d38268

Browse files
committed
remove highlighted polygon when time zone picker is deselected.
1 parent c053cc1 commit 0d38268

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

conversionDialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def capturedPoint(self, pt):
159159
def stopCapture(self):
160160
# print('stopCapture')
161161
self.coordCaptureButton.setChecked(False)
162+
self.rubber.reset()
162163

163164
def setCoordinateTimezone(self, lat, lon):
164165
tzname = self.tf.certain_timezone_at(lng=lon, lat=lat)

datetimetools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* *
1818
***************************************************************************/
1919
"""
20-
from qgis.PyQt.QtCore import QUrl
20+
from qgis.PyQt.QtCore import QUrl, Qt
2121
from qgis.PyQt.QtGui import QIcon
2222
from qgis.PyQt.QtWidgets import QAction
2323
from qgis.core import QgsApplication
@@ -57,4 +57,5 @@ def showConversionDialog(self):
5757
from .conversionDialog import ConversionDialog
5858
self.conversionDialog = ConversionDialog(self.iface, self.iface.mainWindow())
5959
self.conversionDialog.setFloating(True)
60+
# self.iface.addDockWidget(Qt.RightDockWidgetArea, self.conversionDialog)
6061
self.conversionDialog.show()

metadata.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name=Date/Time Tools
33
qgisMinimumVersion=3.4
44
description=Conversion tools to display the local date, time, time zone, convert between UNIX time (Epoch), Julian dates, ISO8601, calculate the difference between two dates, select a location and time zone by clicking on the map and display the closet location and sun statistics.
5-
version=3.0.1
5+
version=3.0.2
66
author=C Hamilton
77
email=adenaculture@gmail.com
88
about=Conversion tools to display the local date, time, time zone, convert between UNIX time (Epoch), Julian dates, ISO8601, calculate the difference between two dates, select a location and time zone by clicking on the map and display the closet location and sun statistics.
@@ -15,5 +15,6 @@ icon=icons/dateTime.png
1515
experimental=False
1616
deprecated=False
1717
changelog=
18-
3.0.1 - Shoe time zone polygon
18+
3.0.2 - Bug fix
19+
3.0.1 - Show time zone polygon
1920
3.0.0 - First release

0 commit comments

Comments
 (0)