- Q_ASSERT(QUrl(url).isLocalFile()) setUrl function is meant to also get empty url, which made this assert fail, so move the Q_ASSERT after we set url to Pictures location in case of empty url.
- Q_ASSERT(locations.size() > 1) Fix the logic bug, which made it crash on 1 location getting returned by QStandardPaths, it is supposed to check for 1 or more, not more then 1.
Details
Details
- Reviewers
mart atulsharma - Group Reviewers
Koko - Commits
- R659:c8ce4e08b826: Fix crash on koko startup.
No longer crashes at startup.
Diff Detail
Diff Detail
- Repository
- R659 Koko Image Gallery
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.