Commit c841c1d8 authored by Andrés G. Aragoneses's avatar Andrés G. Aragoneses

ThickClient: add null check in SourceView (bgo#732373)

This at least avoids Banshee crashing in the stable branch,
although doesn't seem to fix the root of the problem.
parent 439f5c11
......@@ -385,13 +385,19 @@ namespace Banshee.Sources.Gui
protected override void OnRowExpanded (TreeIter iter, TreePath path)
{
base.OnRowExpanded (iter, path);
store.GetSource (iter).Expanded = true;
var source = store.GetSource (iter);
if (source != null) {
source.Expanded = true;
}
}
protected override void OnRowCollapsed (TreeIter iter, TreePath path)
{
base.OnRowCollapsed (iter, path);
store.GetSource (iter).Expanded = false;
var source = store.GetSource (iter);
if (source != null) {
source.Expanded = false;
}
}
protected override void OnCursorChanged ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment