From 6557a8b62acdc400a3814a52ac2fc80a28f95e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Tue, 5 Dec 2023 14:49:15 +0100 Subject: [PATCH] session: Fix constructor for new session glib::Boxed panics if not provided with construct_only. --- src/session/model/session_settings.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/session/model/session_settings.rs b/src/session/model/session_settings.rs index f6d8dfd6..547a2099 100644 --- a/src/session/model/session_settings.rs +++ b/src/session/model/session_settings.rs @@ -108,6 +108,10 @@ impl SessionSettings { pub fn new(session_id: &str) -> Self { glib::Object::builder() .property("session-id", session_id) + .property( + "stored-settings", + &BoxedStoredSessionSettings(StoredSessionSettings::default()), + ) .build() }