From 8b21a48e89198c37a9cbc7f8bba1871f275b6809 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 18 Sep 2011 16:16:02 +0000 Subject: hopefully fixed invalid read bug --- muse2/muse/app.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'muse2/muse/app.cpp') diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index 7c716464..b09e7191 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -2089,6 +2089,9 @@ void MusE::toplevelDeleted(TopWin* tl) for (iToplevel i = toplevels.begin(); i != toplevels.end(); ++i) { if (*i == tl) { + if (tl == activeTopWin) + activeTopWinChangedSlot(NULL); + if (tl == currentMenuSharingTopwin) setCurrentMenuSharingTopwin(NULL); -- cgit v1.2.3