From 31aec1ca473b708f6543f9dd38278878df46268e Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 8 Sep 2023 14:54:51 -0500 Subject: [PATCH] fixing slide model to look for correct type In Rust you can't use type as a property name in a struct. This means we have to use ty. --- src/rust/slide_model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/slide_model.rs b/src/rust/slide_model.rs index ebb995e..1f277d1 100644 --- a/src/rust/slide_model.rs +++ b/src/rust/slide_model.rs @@ -401,7 +401,7 @@ mod slide_model { ) { println!("add rust slide {:?}", index); let ty = service_item - .get(&QString::from("type")) + .get(&QString::from("ty")) .unwrap_or(QVariant::from(&QString::from(""))) .value::();