summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 89a89983d..bc6a9aaf2 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -24,6 +24,7 @@
#include "core/geometry_func.hpp"
#include "company_base.h"
#include "company_gui.h"
+#include "gui.h"
#include "widgets/group_widget.h"
@@ -745,17 +746,19 @@ public:
NOT_REACHED();
}
if (v) {
- this->vehicle_sel = v->index;
-
if (_ctrl_pressed) {
- this->SelectGroup(v->group_id);
+ if (this->grouping == GB_NONE) {
+ this->SelectGroup(v->group_id);
+ } else {
+ ShowOrdersWindow(v);
+ }
+ } else {
+ this->vehicle_sel = v->index;
+ SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
+ SetMouseCursorVehicle(v, EIT_IN_LIST);
+ _cursor.vehchain = true;
+ this->SetDirty();
}
-
- SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
- SetMouseCursorVehicle(v, EIT_IN_LIST);
- _cursor.vehchain = true;
-
- this->SetDirty();
}
break;