Commit 724a1f39 authored by Johannes Zarl-Zierl's avatar Johannes Zarl-Zierl

ImageSearchInfo: don't invalidate compiled search if not needed.

The ImageSearchInfo compiled data only needs to be invalidated when the
search conditions that are changed actually are covered by the compiled
data.
parent 6470aa4d
......@@ -282,8 +282,8 @@ void ImageSearchInfo::setRating(short rating)
{
m_rating = rating;
m_isNull = false;
m_compiled.valid = false;
m_matchGeneration = nextGeneration();
// compiled data is not affected
}
void ImageSearchInfo::setMegaPixel(short megapixel)
......@@ -597,11 +597,11 @@ Map::GeoCoordinates::LatLonBox ImageSearchInfo::regionSelection() const
void ImageSearchInfo::setRegionSelection(const Map::GeoCoordinates::LatLonBox &actRegionSelection)
{
m_regionSelection = actRegionSelection;
m_compiled.valid = false;
if (!m_regionSelection.isNull()) {
m_isNull = false;
}
m_matchGeneration = nextGeneration();
// compiled data is not affected
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment