void MainWindow::on_actionClose_triggered()
{
    if (continueModified()) {
        LOG_DEBUG() << "";
        MLT.setProjectFolder(QString());
        MLT.stop();
        if (multitrack())
            m_timelineDock->model()->close();
        if (playlist())
            m_playlistDock->model()->close();
        else
            onMultitrackClosed();
        m_player->enableTab(Player::SourceTabIndex, false);
        MLT.purgeMemoryPool();
        MLT.resetLocale();
    }
}
void MainWindow::on_actionClose_triggered()
{
    if (continueModified()) {
        LOG_DEBUG() << "";
        MLT.setProjectFolder(QString());
        MLT.stop();
        if (multitrack())
            m_timelineDock->model()->close();
        if (playlist())
            m_playlistDock->model()->close();
        else
            onMultitrackClosed();
        m_player->enableTab(Player::SourceTabIndex, false);
        MLT.purgeMemoryPool();
        MLT.resetLocale();
    }
}