Skip to content

Commit

Permalink
Fix 1287: Focus return to arranger window when pianoroll closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Oct 17, 2024
1 parent 1d353d3 commit 73a05e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
17.10.2024
- Fix issue 1287: Focus doesn't return to arranger window when pianoroll closed. (Tim)
In MusE::toplevelDeleting(), call TopWin::focusCanvas() to direct focus to the canvas.
16.10.2024
- Event List Editor: Fixed cannot open multiple parts. (Tim)
Thanks to forum user 'enaiel' for spotting that.
Expand Down
5 changes: 5 additions & 0 deletions src/muse/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3727,6 +3727,11 @@ void MusE::toplevelDeleting(MusEGui::TopWin* tl)

bringToFront((*lit)->widget());

// If the TopWin has a canvas and a focusCanvas(), call it to focus the canvas.
TopWin* tw = dynamic_cast<TopWin*>( (*lit)->widget());
if(tw)
tw->focusCanvas();

break;
}
}
Expand Down

0 comments on commit 73a05e4

Please sign in to comment.