projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cee15a6
)
Don't read DCP directory if we're not looking at it.
author
Carl Hetherington
<cth@carlh.net>
Fri, 28 Sep 2018 15:23:22 +0000
(16:23 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 28 Sep 2018 15:23:22 +0000
(16:23 +0100)
src/wx/controls.cc
patch
|
blob
|
history
diff --git
a/src/wx/controls.cc
b/src/wx/controls.cc
index df2c161348e01bfeaffffc24f8fb71fbd4b1a818..a5cc1dcc4f7a8cd5cf5e3b49c20c927a1d338284 100644
(file)
--- a/
src/wx/controls.cc
+++ b/
src/wx/controls.cc
@@
-510,6
+510,9
@@
void
Controls::show_extended_player_controls (bool s)
{
_cpl->Show (s);
+ if (s) {
+ update_dcp_directory ();
+ }
_spl_view->Show (s);
_log->Show (s);
_add_button->Show (s);
@@
-550,6
+553,10
@@
Controls::add_cpl_to_list (shared_ptr<dcp::CPL> cpl, wxListCtrl* ctrl)
void
Controls::update_dcp_directory ()
{
+ if (!_cpl->IsShown()) {
+ return;
+ }
+
using namespace boost::filesystem;
_cpl->DeleteAllItems ();