File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1196,7 +1196,6 @@ void Editor::updateCursorRectVisibility() {
11961196 auto editAction = getEditAction ();
11971197 bool visible = this ->settings ->cursorTileRectEnabled
11981198 && mouseInMap
1199- && getEditingLayout ()
12001199 // Only show the tile cursor for tools that apply at a specific tile
12011200 && editAction != EditAction::Select
12021201 && editAction != EditAction::Move;
@@ -2224,7 +2223,7 @@ bool Editor::canAddEvents(const QList<Event*> &events) {
22242223}
22252224
22262225void Editor::duplicateSelectedEvents () {
2227- if (this ->selectedEvents .isEmpty () || !project || !map || !current_view || this ->getEditingLayout () )
2226+ if (this ->selectedEvents .isEmpty () || !project || !map || !current_view || this ->editMode != EditMode::Events )
22282227 return ;
22292228
22302229 QList<Event *> duplicatedEvents;
You can’t perform that action at this time.
0 commit comments