Don't give clips a hidden default name (Fix #5528) (#5621)

* Automatic formatting changes

* Give clips an empty name by default, display all names

- Stop giving clips the same name as their parent track on creation
- Stop hiding clip names that match the parent track name
- Never rename clips on track rename
- Never clear clip name when a clip is copied to another track
- Create an upgrade routine to clear default names from old projects (< 1.3.0-alpha-1)
- Bump version to 1.3.0-alpha-1

* Revert now-unnecessary version bump

* Merge with master and fix conflicts

* Formatting changes from review

* Change weird for loop conditions

* Properly revert AutomationPatter.h changes

* Only clear names that match our parent track, be more generous with use of legacyFileVersion

Co-authored-by: Hyunjin Song <tteu.ingog@gmail.com>
This commit is contained in:
Spekular
2020-09-21 16:50:55 +02:00
committed by GitHub
parent 6d160fd773
commit 9e401828aa
7 changed files with 65 additions and 77 deletions

View File

@@ -114,6 +114,7 @@ private:
void upgrade_1_1_91();
void upgrade_1_2_0_rc3();
void upgrade_1_3_0();
void upgrade_noHiddenClipNames();
// List of all upgrade methods
static const std::vector<UpgradeMethod> UPGRADE_METHODS;
@@ -141,4 +142,3 @@ private:
#endif

View File

@@ -45,6 +45,7 @@ public:
ProjectVersion(QString version, CompareType c = All);
ProjectVersion(const char * version, CompareType c = All);
const QString& getVersion() const { return m_version; }
int getMajor() const { return m_major; }
int getMinor() const { return m_minor; }
int getPatch() const { return m_patch; }