diff options
author | smatz <smatz@openttd.org> | 2008-02-17 12:21:05 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-02-17 12:21:05 +0000 |
commit | 291931bf5078e407d89046e7e2d92e0dcf261730 (patch) | |
tree | 22ddea3397fca7768e35d1a7ca62b9d0b33149c2 /src/depot_gui.cpp | |
parent | 16e23a75febeb32efad491c4916315ef9cfd73d4 (diff) | |
download | openttd-291931bf5078e407d89046e7e2d92e0dcf261730.tar.xz |
(svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard input, depot/group window wasn't updated (original patch by GrimRC)
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 98097817c..f9605dd65 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -860,8 +860,13 @@ static void DepotWndProc(Window *w, WindowEvent *e) } break; case WE_ABORT_PLACE_OBJ: { + /* abort clone */ w->RaiseWidget(DEPOT_WIDGET_CLONE); w->InvalidateWidget(DEPOT_WIDGET_CLONE); + + /* abort drag & drop */ + WP(w, depot_d).sel = INVALID_VEHICLE; + w->InvalidateWidget(DEPOT_WIDGET_MATRIX); } break; /* check if a vehicle in a depot was clicked.. */ |