MCPcopy Create free account
hub / github.com/LMMS/lmms / closeEvent

Method closeEvent

src/gui/MainWindow.cpp:1393–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1391
1392
1393void MainWindow::closeEvent( QCloseEvent * _ce )
1394{
1395 if( mayChangeProject(true) )
1396 {
1397 // delete recovery file
1398 if( ConfigManager::inst()->
1399 value( "ui", "enableautosave" ).toInt() )
1400 {
1401 sessionCleanup();
1402 _ce->accept();
1403 }
1404 }
1405 else
1406 {
1407 _ce->ignore();
1408 }
1409}
1410
1411
1412

Callers

nothing calls this directly

Calls 3

instFunction · 0.50
valueMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected