comparison main/MainWindow.cpp @ 1434:387bc365aac1 levelpanwidget

When the window is actually being closed, we need to close the prefs quickly (otherwise we get a crash on Mac)
author Chris Cannam
date Thu, 15 Dec 2016 14:40:20 +0000
parents 2451e7bb90af
children 11484141d969
comparison
equal deleted inserted replaced
1433:02e5ba5cc889 1434:387bc365aac1
3321 settings.endGroup(); 3321 settings.endGroup();
3322 3322
3323 if (m_preferencesDialog && 3323 if (m_preferencesDialog &&
3324 m_preferencesDialog->isVisible()) { 3324 m_preferencesDialog->isVisible()) {
3325 closeSession(); // otherwise we'll have to wait for prefs changes 3325 closeSession(); // otherwise we'll have to wait for prefs changes
3326 m_preferencesDialog->applicationClosing(false); 3326 m_preferencesDialog->applicationClosing(true);
3327 } 3327 }
3328 3328
3329 closeSession(); 3329 closeSession();
3330 3330
3331 e->accept(); 3331 e->accept();