Skip to content

Commit

Permalink
Fix %search% token when loading from a Gallery tab (fix #2688)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed May 30, 2022
1 parent 60291ae commit 2a8d603
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/src/models/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,9 @@ void Image::setTags(const QList<Tag> &tags)
void Image::setParentGallery(const QSharedPointer<Image> &parentGallery)
{
m_parentGallery = parentGallery;
if (m_search.isEmpty()) {
m_search = m_parentGallery->search();
}
refreshTokens();
}

Expand Down

0 comments on commit 2a8d603

Please sign in to comment.