musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
11.79k stars 2.56k forks source link

fixed #23338: Hotfix. Reverted changes for menu model #23352

Closed Eism closed 6 days ago

Eism commented 6 days ago

see #23320

Resolves: #23338 Resolves: #23347

I added it for the menu because I thought it was logical, but it looks like it needs to be researched better

cbjeukendrup commented 5 days ago

Idea that might potentially work:

for (MenuItem* item : m_items) {
    if (item->parent() == this) {
        item->deleteLater();
    }
}

Would it work? Perhaps. Is it beautiful? Could have been worse. Is it durable? Meh...