projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc92ea8
)
Cleanup: remove some make_wx<> that aren't needed.
author
Carl Hetherington
<cth@carlh.net>
Tue, 16 Jan 2024 20:28:37 +0000
(21:28 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 16 Jan 2024 20:33:29 +0000
(21:33 +0100)
src/wx/content_menu.cc
patch
|
blob
|
history
diff --git
a/src/wx/content_menu.cc
b/src/wx/content_menu.cc
index b096ecae6c1551e0aabff7d6f8735ac0ae18ef0a..78b6469a043249605873dff4889175e8183ca2d6 100644
(file)
--- 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) {
boost::filesystem::path path;
if ((ic && !ic->still ()) || dc) {
-
auto d = make_wx<wxDirDialog>(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 = d
ialog.ShowModal
();
+ path = wx_to_std
(dialog.
GetPath());
} else {
} else {
-
auto d = make_wx<wxFileDialog>(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 = d
ialog.ShowModal
();
+ path = wx_to_std
(dialog.
GetPath());
}
if (r == wxID_CANCEL) {
}
if (r == wxID_CANCEL) {