Commit fcd388b3 authored by Andreas Brauchli's avatar Andreas Brauchli Committed by Jens Georg

map: only stop map movements on drag when map is unlocked

Also signal when a drop will not be accepted (due to map edit lock)
parent da0b428c
......@@ -296,7 +296,10 @@ private class MapWidget : Gtk.Bin {
}
public override bool drag_motion(Gdk.DragContext context, int x, int y, uint time) {
map_view.stop_go_to();
if (!map_edit_lock)
map_view.stop_go_to();
else
Gdk.drag_status(context, 0, time);
return true;
}
......
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