diff options
| author | Florian Jung <flo@windfisch.org> | 2011-09-19 13:16:19 +0000 | 
|---|---|---|
| committer | Florian Jung <flo@windfisch.org> | 2011-09-19 13:16:19 +0000 | 
| commit | ca0f44f30727fc0e335579835868bfd5f86bb306 (patch) | |
| tree | dd64225b8d4ae4b74c054ddc7a0f5b4822af1294 /muse2 | |
| parent | ab9b0aebfe2e164dfff06d4401d9512bffac332e (diff) | |
hopefully finally fixed the invalid reads (and segfaulting) bug when
closing toplevels.
Diffstat (limited to 'muse2')
| -rw-r--r-- | muse2/muse/app.cpp | 8 | 
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) | 
