summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-12-14 16:42:56 +0000
committerCarl Hetherington <cth@carlh.net>2016-12-14 16:42:56 +0000
commite2060bab0a965e77dee7c998753a858aa38b8849 (patch)
tree8dcb11e87ad9231263d5b50d3954296a8aed539d /src
parent51fe20b89a41db948070ae2a19746f146e20fb73 (diff)
Add some debugging for the strange greyed-out refer button.
Diffstat (limited to 'src')
-rw-r--r--src/wx/content_sub_panel.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc
index 465288ae2..8679604cb 100644
--- a/src/wx/content_sub_panel.cc
+++ b/src/wx/content_sub_panel.cc
@@ -21,6 +21,9 @@
#include "content_sub_panel.h"
#include "content_panel.h"
#include "wx_util.h"
+#include "lib/dcp_content.h"
+#include "lib/compose.hpp"
+#include "lib/log.h"
#include <wx/notebook.h>
#include <boost/foreach.hpp>
@@ -40,6 +43,18 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name)
void
ContentSubPanel::setup_refer_button (wxCheckBox* button, shared_ptr<DCPContent> dcp, bool can_reference, list<string> why_not) const
{
+ /* XXX: just for debugging */
+ if (dcp) {
+ dcp->film()->log()->log (
+ String::compose (
+ "setup_refer_button for %1; %2 %3",
+ dcp->path(0).string(),
+ int(can_reference),
+ int(why_not.size())),
+ LogEntry::TYPE_GENERAL
+ );
+ }
+
button->Enable (can_reference);
wxString s;