X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fcontent_panel.cc;h=7d854224d232a0b939758cd4094e3951d0604a65;hp=72ef0e9ebde3c3cb81e2808a9ec17325ca50fca7;hb=9001a63be211fd8e97431f8fc07c66af01554f5a;hpb=c4403784febdbdd42e9c32e67fadb147f11fe566 diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 72ef0e9eb..7d854224d 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -69,7 +69,10 @@ public: LimitedSplitter (wxWindow* parent) : wxSplitterWindow (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_NOBORDER | wxSP_3DSASH | wxSP_LIVE_UPDATE) { - + /* This value doesn't really mean much but we just want to stop double-click on the + divider from shrinking the bottom panel (#1601). + */ + SetMinimumPaneSize (64); } bool OnSashPositionChange (int new_position) @@ -89,6 +92,7 @@ ContentPanel::ContentPanel (wxNotebook* n, shared_ptr film, weak_ptrset_selection (selected()); _timeline_dialog->Show (); } @@ -662,6 +661,8 @@ ContentPanel::set_selection (weak_ptr wc) void ContentPanel::set_selection (ContentList cl) { + _no_check_selection = true; + ContentList content = _film->content (); for (size_t i = 0; i < content.size(); ++i) { if (find(cl.begin(), cl.end(), content[i]) != cl.end()) { @@ -670,6 +671,9 @@ ContentPanel::set_selection (ContentList cl) _content->SetItemState (i, 0, wxLIST_STATE_SELECTED); } } + + _no_check_selection = false; + check_selection (); } void