# # # patch "NEWS" # from [f1282534c19d0088e985882823fffceae131a55e] # to [d0d9dc22a0cc10e3691e75cb0a77e805fa33b182] # # patch "src/view/MainWindow.cpp" # from [97f3476a31a453cffbe0ad2d28252ab797547b99] # to [6d7e16f17511404542d37f804aece321ead4b467] # ============================================================ --- NEWS f1282534c19d0088e985882823fffceae131a55e +++ NEWS d0d9dc22a0cc10e3691e75cb0a77e805fa33b182 @@ -51,6 +51,8 @@ - bugfix: if guitone is closed too fast (f.e. before the internal mtn thread could be started), the application wasn't closed properly, but only removed all open windows + - bugfix: if a window is closed with ctrl-w we now make sure that the app + doesn't crash... 2008-04-06 (0.7.1) - new: possibility to suppress the upper version check which lets ============================================================ --- src/view/MainWindow.cpp 97f3476a31a453cffbe0ad2d28252ab797547b99 +++ src/view/MainWindow.cpp 6d7e16f17511404542d37f804aece321ead4b467 @@ -63,9 +63,12 @@ void MainWindow::init() this, SLOT(close()) ); + // since the window is deleted afterwards, make this connection + // queued so the slot call does not return to invalid memory connect( this, SIGNAL(windowClosed(MainWindow *)), - APP, SLOT(windowClosed(MainWindow *)) + APP, SLOT(windowClosed(MainWindow *)), + Qt::QueuedConnection ); connect(