BUG: T9905
Update variable m_projectTitlePath with user selected directory when the user tries to load title clips from outside the default directory.
Details
- Reviewers
mardelle
Diff Detail
- Repository
- R158 Kdenlive
- Branch
- branch2
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 6681 Build 6699: arc lint + arc unit
Hi Akhilkgangadharan. I'm not a coder. Please add Jean-Baptiste Mardelle as reviewer. Thanks.
Thanks for this contribution. To convert an url to a string, it is recommended to use toLocalFile() instead of toString() .
Also, the m_projectTitlePath variable is local to the titleWidget, so it is lost as soon as you close the title widget. To work around that, I used a KDE class that was designed to store paths for file dialogs: KRecentDirs::dir(QStringLiteral(":KdenliveProjectsTitles"));
I just pushed a complete fix for this issue: https://phabricator.kde.org/R158:c6adbe259e129588dad6c4229b5e60de62e3be77
Thanks for reviewing!
I didn't think of storing the path as I thought it wouldn't be needed but now thinking about it, it is required :)
Thanks for the suggestions, I'll abandon this revision.