summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-09-18 16:16:02 +0000
committerFlorian Jung <flo@windfisch.org>2011-09-18 16:16:02 +0000
commit8b21a48e89198c37a9cbc7f8bba1871f275b6809 (patch)
tree8a9f96f1c440f34d84d4f217b9e8c00ae4cc5771 /muse2/muse/app.cpp
parent6b004a6b4eb4e90fac188907623085da49c065e7 (diff)
hopefully fixed invalid read bug
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp3
1 files changed, 3 insertions, 0 deletions
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);