projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
51fe20b
)
Add some debugging for the strange greyed-out refer button.
author
Carl Hetherington
<cth@carlh.net>
Wed, 14 Dec 2016 16:42:56 +0000
(16:42 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 14 Dec 2016 16:42:56 +0000
(16:42 +0000)
src/wx/content_sub_panel.cc
patch
|
blob
|
history
diff --git
a/src/wx/content_sub_panel.cc
b/src/wx/content_sub_panel.cc
index 465288ae20425916517f27243b01708cd6a18556..8679604cbc3af0550fb4e022e0dd1ffefc51fcc0 100644
(file)
--- 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 "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>
#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
{
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;
button->Enable (can_reference);
wxString s;