More debugging for refer button.
authorCarl Hetherington <cth@carlh.net>
Tue, 20 Dec 2016 10:11:34 +0000 (10:11 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 20 Dec 2016 10:11:34 +0000 (10:11 +0000)
src/wx/content_sub_panel.cc

index 8679604cbc3af0550fb4e022e0dd1ffefc51fcc0..e9d082701ccaa4cff7319a4aea81570ea09df115 100644 (file)
@@ -66,5 +66,13 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, shared_ptr<DCPContent>
                        s += std_to_wx(i) + wxT("  ");
                }
        }
+
+       /* 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);
+       }
+
        button->SetToolTip (s);
 }