Skip to content

Commit

Permalink
Release of 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jan 17, 2025
1 parent b2acf45 commit 3e685d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 2.3.1 - 2025-01-17

* Fix JOSM remote when opening an extent

## 2.3.0 - 2025-01-06

* Added logical operator param, contribution from @chrstnbwnkl, @nilsnolde
Expand Down
2 changes: 1 addition & 1 deletion QuickOSM/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author=Etienne Trimaille
[email protected]
hasProcessingProvider=yes
server=False
supportsQt6=True
# supportsQt6=True

# End of mandatory metadata

Expand Down
14 changes: 4 additions & 10 deletions QuickOSM/quick_osm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@

from os.path import join

from qgis.core import (
Qgis,
QgsApplication,
QgsCoordinateReferenceSystem,
QgsCoordinateTransform,
QgsProject,
QgsZipUtils,
)
from qgis.core import Qgis, QgsApplication, QgsZipUtils
from qgis.PyQt.QtCore import QCoreApplication, QTranslator, QUrl
from qgis.PyQt.QtGui import QDesktopServices, QIcon
from qgis.PyQt.QtWidgets import (
Expand Down Expand Up @@ -207,10 +200,11 @@ def show_help():
def josm_remote(self):
"""Call the JOSM remote control using the current canvas extent."""
map_settings = self.iface.mapCanvas().mapSettings()
title = tr('JOSM Remote')
if open_extent(map_settings.extent(), map_settings.destinationCrs()):
self.iface.messageBar().pushSuccess(tr('JOSM Remote'), tr('Import done, check JOSM.'))
self.iface.messageBar().pushSuccess(title, tr('Import done, check JOSM.'))
else:
self.iface.messageBar().pushCritical(tr('JOSM Remote'), tr('Is the remote enabled in the JOSM settings?'))
self.iface.messageBar().pushCritical(title, tr('Is the remote enabled in the JOSM settings?'))

def open_dialog(self):
"""Create and open the main dialog."""
Expand Down

0 comments on commit 3e685d9

Please sign in to comment.