summaryrefslogtreecommitdiff
path: root/src/wx/content_panel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/content_panel.cc')
-rw-r--r--src/wx/content_panel.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index 59a43fa37..cefb5b0d9 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -228,6 +228,15 @@ ContentPanel::film_changed (Film::Property p)
void
ContentPanel::selection_changed ()
{
+ if (_last_selected == selected()) {
+ /* This was triggered by a re-build of the view but the selection
+ did not really change.
+ */
+ return;
+ }
+
+ _last_selected = selected ();
+
setup_sensitivity ();
BOOST_FOREACH (ContentSubPanel* i, _panels) {