diff --git a/results.cpp b/results.cpp index e879c6b7..623b8c6b 100644 --- a/results.cpp +++ b/results.cpp @@ -41,9 +41,11 @@ Results::Results(SharedRealm r, const ObjectSchema &o, Table& table) Results& Results::operator=(Results const& r) { m_realm = r.m_realm; - const_cast(object_schema) = r.object_schema; m_query = r.get_query(); + m_table = r.m_table; m_sort = r.get_sort(); + m_mode = Mode::Query; + const_cast(object_schema) = r.object_schema; return *this; }