diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-16 01:14:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-16 01:15:50 +0100 |
| commit | fe851f2e6e57d3a8781ecc173089c19632c521e3 (patch) | |
| tree | fd0f388d9ce9eccb4a8011361bd166d192918bd8 /src/wx/content_panel.cc | |
| parent | e8748f158249d7be906f6c6cf2411df45dd07a24 (diff) | |
Use wx_ptr more.
Diffstat (limited to 'src/wx/content_panel.cc')
| -rw-r--r-- | src/wx/content_panel.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 71f32068a..456dbcb56 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -709,12 +709,7 @@ ContentPanel::timeline_clicked () return; } - if (_timeline_dialog) { - _timeline_dialog->Destroy (); - _timeline_dialog = nullptr; - } - - _timeline_dialog = new TimelineDialog (this, _film, _film_viewer); + _timeline_dialog.reset(this, _film, _film_viewer); _timeline_dialog->set_selection (selected()); _timeline_dialog->Show (); } |
