Fixed bug where it would panic on startup if there was an epty liststroe.
This commit is contained in:
parent
3d98bf12f3
commit
31d986880b
@ -19,7 +19,12 @@ pub fn populate_podcasts_flowbox(
|
|||||||
drop(tempdb);
|
drop(tempdb);
|
||||||
|
|
||||||
// Get a ListStore iterator at the first element.
|
// Get a ListStore iterator at the first element.
|
||||||
let iter = pd_model.get_iter_first().unwrap();
|
let iter = if let Some(it) = pd_model.get_iter_first() {
|
||||||
|
it
|
||||||
|
} else {
|
||||||
|
// TODO: Display an empty view
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let title = pd_model
|
let title = pd_model
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user