diff options
author | Gabriel Burt <gabriel.burt@gmail.com> | 2010-03-18 17:16:34 -0700 |
---|---|---|
committer | Gabriel Burt <gabriel.burt@gmail.com> | 2010-03-18 17:18:52 -0700 |
commit | 630efc31aa862f785c4085973f542bee70ee35a4 (patch) | |
tree | 7996d4a72cca0fa4a626ea2b9768b63afba76727 | |
parent | 0eb6e968b5153ddd90ea6f6ed5eb634886acab5f (diff) |
[ContextPane] Fix crash if active removed (bgo#613277)
-rw-r--r-- | src/Core/Banshee.ThickClient/Banshee.ContextPane/ContextPane.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Core/Banshee.ThickClient/Banshee.ContextPane/ContextPane.cs b/src/Core/Banshee.ThickClient/Banshee.ContextPane/ContextPane.cs index 2a92568ef..88b0a60e7 100644 --- a/src/Core/Banshee.ThickClient/Banshee.ContextPane/ContextPane.cs +++ b/src/Core/Banshee.ThickClient/Banshee.ContextPane/ContextPane.cs @@ -173,6 +173,10 @@ namespace Banshee.ContextPane private void OnActivePageStateChanged (ContextState state) { + if (active_page == null || !pane_pages.ContainsKey (active_page)) { + return; + } + if (state == ContextState.NotLoaded) notebook.CurrentPage = notebook.PageNum (no_active); else if (state == ContextState.Loading) |