summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-09-19 13:16:19 +0000
committerFlorian Jung <flo@windfisch.org>2011-09-19 13:16:19 +0000
commitca0f44f30727fc0e335579835868bfd5f86bb306 (patch)
treedd64225b8d4ae4b74c054ddc7a0f5b4822af1294 /muse2/muse/app.cpp
parentab9b0aebfe2e164dfff06d4401d9512bffac332e (diff)
hopefully finally fixed the invalid reads (and segfaulting) bug when
closing toplevels.
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index b09e7191..84b5121c 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -2090,7 +2090,10 @@ void MusE::toplevelDeleted(TopWin* tl)
if (*i == tl) {
if (tl == activeTopWin)
- activeTopWinChangedSlot(NULL);
+ {
+ activeTopWin=NULL;
+ emit activeTopWinChanged(NULL);
+ }
if (tl == currentMenuSharingTopwin)
setCurrentMenuSharingTopwin(NULL);
@@ -3289,7 +3292,8 @@ void MusE::bringToFront(QWidget* widget)
win->raise();
}
- activeTopWinChangedSlot(win);
+ activeTopWin=win;
+ emit activeTopWinChanged(win);
}
void MusE::setFullscreen(bool val)