MuseScore
MuseScore copied to clipboard
[MU4] Fix musescore#12028: Fix messaging when opening non-existing scores
Resolves: #12028
- [x] I signed CLA
- [x] I made sure the code in the PR follows the coding rules
- [x] I made sure the code compiles on my machine
- [ ] I made sure there are no unnecessary changes in the code
- [x] I made sure the title of the PR reflects the core meaning of the issue you are solving
- [x] I made sure the commit message(s) contain a description and answer the question "Why do those changes fix that particular issue?" or "Why are those changes really necessary as improvements?"
- [x] I made sure the commit message title starts with "fix #424242:" if there is a related issue
- [ ] I created the test (mtest, vtest, script test) to verify the changes I made
Rebase needed :)
Done. :slightly_smiling_face:
@igorkorsukov can you please review this?
@iwoithe sorry but can you please rebase this again? We will look at it asap!
@iwoithe can I just make a small request for an amendment in this PR?
When the file is not corrupted, but simply cannot be found, can we show this dialog instead?
It just doesn't make sense to call a corruption dialog when there is no corruption.
Thanks!
@DmitryArefiev FYI
@bkunda Actually that would defeat the purpose of this PR: the point of this PR is to be a bit more specific than "an error had occurred". Would it be an idea to maintain the specific-ness of this PR? So, if a file cannot be opened...
- ... if it's because of corruption, show the corruption dialog
- ... otherwise, show that simple dialog you propose, but with the more specific explanation implemented by this PR. Of course, the exact wordings of these explanations can be discussed.
@cbjeukendrup can you please follow up on this one? Many thanks!
@iwoithe I created a follow-up PR with some additional changes here: https://github.com/musescore/MuseScore/pull/18376 That PR contains your PR, so I will close this one, but you can consider it merged. Thanks for the contribution!