need a macro for 'last modified' in header/footer

• Sep 25, 2014 - 08:40
Type
Functional
Severity
S5 - Suggestion
Status
closed
Project

Currently we have $D for creation date (actually taken from the coresponding mete tag) and $d for current date.
Additionally a "last modified date" would be useful, as kind of "poor man's revision cotrol"


Comments

Status (old) fixed active

drat, found 2 issues with that:
1. It doesn't work for (linked) parts, just the main score
2. changing anything in score (or part), so that is is marked 'dirty', doesn't get reflected
a) before being saved (here we might take current date/time instead?)
b) after having been saved, file needs to get closed and reopened to see the effect.

A fix for linked parts would be the same as proposed in [#34986]: use rootScore()'s informaton instead
A fix for 'dirty' scores/parts, would be to use current ttime and date.

PR to follow shortly

The problem that these macros don't update once a score got saved seems to be much deeper in the inner guts of MuseScore, possible even a Qt Problem. Seems QFileInfo doesn't get upated?

Ah, found QFileInfo::refresh()
Using that in Score::saveFile() right before the 2 places it returns successfully does help, but only if switching to some other score or part, then back, so an update() seems needed too.