summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/content_sub_panel.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc
index e9d082701..674b30369 100644
--- a/src/wx/content_sub_panel.cc
+++ b/src/wx/content_sub_panel.cc
@@ -68,10 +68,12 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, shared_ptr<DCPContent>
}
/* XXX: more debugging */
- if (!s.IsEmpty()) {
- dcp->film()->log()->log (String::compose ("setting tooltip to %1", wx_to_std (s)), LogEntry::TYPE_GENERAL);
- } else {
- dcp->film()->log()->log ("clearing tooltip", LogEntry::TYPE_GENERAL);
+ if (dcp) {
+ if (!s.IsEmpty()) {
+ dcp->film()->log()->log (String::compose ("setting tooltip to %1", wx_to_std (s)), LogEntry::TYPE_GENERAL);
+ } else {
+ dcp->film()->log()->log ("clearing tooltip", LogEntry::TYPE_GENERAL);
+ }
}
button->SetToolTip (s);