diff --git a/VoGisProfilTool.zip b/VoGisProfilTool.zip index f3ae482..af0f5f5 100644 Binary files a/VoGisProfilTool.zip and b/VoGisProfilTool.zip differ diff --git a/VoGisProfilTool/__init__.py b/VoGisProfilTool/__init__.py index 3bbd95b..bcba9df 100644 --- a/VoGisProfilTool/__init__.py +++ b/VoGisProfilTool/__init__.py @@ -31,7 +31,7 @@ def description(): def version(): - return "1.9.1" + return "2.5.0" def icon(): diff --git a/VoGisProfilTool/metadata.txt b/VoGisProfilTool/metadata.txt index bcaae77..fbf6d7d 100644 --- a/VoGisProfilTool/metadata.txt +++ b/VoGisProfilTool/metadata.txt @@ -13,7 +13,7 @@ name=VoGIS-ProfilTool qgisMinimumVersion=1.8 qgisMaximumVersion=2.99 description=Create profiles from DHMs using vector geometries or a digitized line. -version=1.9.1 +version=2.5.0 author=BergWerk GIS email=wb@BergWerk-GIS.at diff --git a/VoGisProfilTool/resources_rc.py b/VoGisProfilTool/resources_rc.py index 4068c46..22b2a52 100644 --- a/VoGisProfilTool/resources_rc.py +++ b/VoGisProfilTool/resources_rc.py @@ -2,7 +2,7 @@ # Resource object code # -# Created: Di. Nov 4 13:50:01 2014 +# Created: Sa. Nov 8 10:51:10 2014 # by: The Resource Compiler for PyQt (Qt v4.8.6) # # WARNING! All changes made in this file will be lost! diff --git a/VoGisProfilTool/ui/ui_vogisprofiltoolmain.py b/VoGisProfilTool/ui/ui_vogisprofiltoolmain.py index 78f33f7..9c7f820 100644 --- a/VoGisProfilTool/ui/ui_vogisprofiltoolmain.py +++ b/VoGisProfilTool/ui/ui_vogisprofiltoolmain.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'ui/ui_vogisprofiltoolmain.ui' # -# Created: Tue Nov 4 13:50:01 2014 +# Created: Sat Nov 8 10:51:10 2014 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! diff --git a/VoGisProfilTool/ui/ui_vogisprofiltoolplot.py b/VoGisProfilTool/ui/ui_vogisprofiltoolplot.py index 9349666..63524f5 100644 --- a/VoGisProfilTool/ui/ui_vogisprofiltoolplot.py +++ b/VoGisProfilTool/ui/ui_vogisprofiltoolplot.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'ui/ui_vogisprofiltoolplot.ui' # -# Created: Tue Nov 4 13:50:01 2014 +# Created: Sat Nov 8 10:51:10 2014 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! diff --git a/VoGisProfilTool/vogisprofiltoolmain.py b/VoGisProfilTool/vogisprofiltoolmain.py index 21ef488..c57712f 100644 --- a/VoGisProfilTool/vogisprofiltoolmain.py +++ b/VoGisProfilTool/vogisprofiltoolmain.py @@ -86,6 +86,15 @@ def unload(self): # run method that performs all the real work def run(self): + is_open = QSettings().value("vogisprofiltoolmain/isopen", False) + #Python treats almost everything as True```` + #is_open = bool(is_open) + QgsMessageLog.logMessage(u'isopen: {0}'.format(is_open), 'VoGis') + #!!!string comparison + if is_open == 'true': + QgsMessageLog.logMessage(u'Dialog already opened', 'VoGis') + return + try: import shapely except ImportError: @@ -118,13 +127,17 @@ def run(self): self.settings.onlyHektoMode = True self.settings.createHekto = True - # Create the dialog (after translation) and keep reference - self.dlg = VoGISProfilToolMainDialog(self.iface, self.settings) - # show the dialog - self.dlg.show() - # Run the dialog event loop - #result = self.dlg.exec_() - self.dlg.exec_() + try: + QSettings().setValue("vogisprofiltoolmain/isopen", True) + # Create the dialog (after translation) and keep reference + self.dlg = VoGISProfilToolMainDialog(self.iface, self.settings) + # show the dialog + self.dlg.show() + # Run the dialog event loop + #result = self.dlg.exec_() + self.dlg.exec_() + finally: + QSettings().setValue("vogisprofiltoolmain/isopen", False) def __getMapData(self): diff --git a/plugins.xml b/plugins.xml index bf3117f..1876356 100644 --- a/plugins.xml +++ b/plugins.xml @@ -1,8 +1,8 @@ - + - 1.9.1 + 2.5.0 1.8.0 2.99.0 https://github.com/BergWerkGIS/VoGIS-Profil-Tool/