Skip to content

Commit 73a05e4

Browse files
author
Tim
committed
Fix 1287: Focus return to arranger window when pianoroll closed
1 parent 1d353d3 commit 73a05e4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/ChangeLog

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
17.10.2024
2+
- Fix issue 1287: Focus doesn't return to arranger window when pianoroll closed. (Tim)
3+
In MusE::toplevelDeleting(), call TopWin::focusCanvas() to direct focus to the canvas.
14
16.10.2024
25
- Event List Editor: Fixed cannot open multiple parts. (Tim)
36
Thanks to forum user 'enaiel' for spotting that.

src/muse/app.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -3727,6 +3727,11 @@ void MusE::toplevelDeleting(MusEGui::TopWin* tl)
37273727

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

3730+
// If the TopWin has a canvas and a focusCanvas(), call it to focus the canvas.
3731+
TopWin* tw = dynamic_cast<TopWin*>( (*lit)->widget());
3732+
if(tw)
3733+
tw->focusCanvas();
3734+
37303735
break;
37313736
}
37323737
}

0 commit comments

Comments
 (0)