From ca0f44f30727fc0e335579835868bfd5f86bb306 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 19 Sep 2011 13:16:19 +0000 Subject: hopefully finally fixed the invalid reads (and segfaulting) bug when closing toplevels. --- muse2/muse/app.cpp | 8 ++++++-- 1 file 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) -- cgit v1.2.3