trying to find bug in some things updating
This commit is contained in:
parent
791ded9c73
commit
50af96e0b7
1 changed files with 7 additions and 2 deletions
|
@ -723,6 +723,7 @@ pub mod song_model {
|
||||||
.get_mut(index as usize)
|
.get_mut(index as usize)
|
||||||
{
|
{
|
||||||
song.font = updated_font.to_string();
|
song.font = updated_font.to_string();
|
||||||
|
debug!(?updated_font);
|
||||||
self.as_mut().emit_data_changed(
|
self.as_mut().emit_data_changed(
|
||||||
model_index,
|
model_index,
|
||||||
model_index,
|
model_index,
|
||||||
|
@ -733,7 +734,11 @@ pub mod song_model {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(_e) => false,
|
Err(_e) => {
|
||||||
|
|
||||||
|
debug!(?updated_font);
|
||||||
|
false
|
||||||
|
}},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -783,7 +788,7 @@ pub mod song_model {
|
||||||
self: Pin<&mut Self>,
|
self: Pin<&mut Self>,
|
||||||
index: i32,
|
index: i32,
|
||||||
) -> QMap_QString_QVariant {
|
) -> QMap_QString_QVariant {
|
||||||
println!("{index}");
|
debug!(index);
|
||||||
let mut qvariantmap = QMap_QString_QVariant::default();
|
let mut qvariantmap = QMap_QString_QVariant::default();
|
||||||
let idx = self.index(index, 0, &QModelIndex::default());
|
let idx = self.index(index, 0, &QModelIndex::default());
|
||||||
if !idx.is_valid() {
|
if !idx.is_valid() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue