From c64b6891f6e28c1a7f11871d3dcccdfe75944644 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Jan 2024 21:28:37 +0100 Subject: Cleanup: remove some make_wx<> that aren't needed. --- src/wx/content_menu.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc index b096ecae6..78b6469a0 100644 --- a/src/wx/content_menu.cc +++ b/src/wx/content_menu.cc @@ -365,13 +365,13 @@ ContentMenu::find_missing () boost::filesystem::path path; if ((ic && !ic->still ()) || dc) { - auto d = make_wx(nullptr, _("Choose a folder"), wxT (""), wxDD_DIR_MUST_EXIST); - r = d->ShowModal (); - path = wx_to_std (d->GetPath()); + wxDirDialog dialog(nullptr, _("Choose a folder"), wxT(""), wxDD_DIR_MUST_EXIST); + r = dialog.ShowModal(); + path = wx_to_std(dialog.GetPath()); } else { - auto d = make_wx(nullptr, _("Choose a file"), wxT (""), wxT (""), wxT ("*.*")); - r = d->ShowModal (); - path = wx_to_std (d->GetPath()); + wxFileDialog dialog(nullptr, _("Choose a file"), wxT(""), wxT(""), wxT("*.*")); + r = dialog.ShowModal(); + path = wx_to_std(dialog.GetPath()); } if (r == wxID_CANCEL) { -- cgit v1.2.3