Skip to content

Commit 2814da3

Browse files
authored
Merge pull request #37 from geotribu/ui/disable-position-sending
fix(ui): disable sending position on canvas right-clic
2 parents 46ff747 + 79f8ca3 commit 2814da3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

qchat/gui/dck_qchat.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,13 @@ def on_widget_opened(self) -> None:
278278
self.generate_qaction_send_geojson_layer
279279
)
280280

281+
# Note: disabled for now since it messes with vectorizing lines.
281282
# context menu on right-click on the canvas for sending position in QChat
282-
map_canvas = self.iface.mapCanvas()
283-
map_canvas.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)
284-
map_canvas.customContextMenuRequested.connect(
285-
self.custom_qchat_position_context_menu
286-
)
283+
# map_canvas = self.iface.mapCanvas()
284+
# map_canvas.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)
285+
# map_canvas.customContextMenuRequested.connect(
286+
# self.custom_qchat_position_context_menu
287+
# )
287288

288289
# auto reconnect to channel if needed
289290
if self.auto_reconnect_channel:

0 commit comments

Comments
 (0)