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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index 5a4873716..40501f717 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -196,7 +196,7 @@ ContentPanel::selected_caption ()
ContentList sc;
BOOST_FOREACH (shared_ptr<Content> i, selected ()) {
- if (i->caption) {
+ if (!i->caption.empty()) {
sc.push_back (i);
}
}
@@ -447,7 +447,7 @@ ContentPanel::setup_sensitivity ()
_video_panel->Enable (_generally_sensitive && video_selection.size() > 0);
_audio_panel->Enable (_generally_sensitive && audio_selection.size() > 0);
- _caption_panel->Enable (_generally_sensitive && selection.size() == 1 && selection.front()->caption);
+ _caption_panel->Enable (_generally_sensitive && selection.size() == 1 && !selection.front()->caption.empty());
_timing_panel->Enable (_generally_sensitive);
}