diff --git a/modules/gui/qt/util/model_recovery_agent.hpp b/modules/gui/qt/util/model_recovery_agent.hpp
index 647d6543b45145677d2b28d380619776682fb16c..3e2f36462e4d6511056c0605fb5bc79c581fcd2d 100644
--- a/modules/gui/qt/util/model_recovery_agent.hpp
+++ b/modules/gui/qt/util/model_recovery_agent.hpp
@@ -160,7 +160,7 @@ public:
         assert(m_settings);
 
         m_settings->sync();
-        assert(m_settings->contains(m_key));
+
         if (m_settings->value(m_key) == m_recoveryFileName)
         {
             m_settings->remove(m_key);