diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-06 22:18:31 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-01-06 22:19:39 +0000 |
| commit | 15a5f157f7867a05211ce494d9d86b9c47fdf72b (patch) | |
| tree | 85f8396475b2c761516885522d75cecc7dc7c448 /src/wx/wx_util.cc | |
| parent | a06f5498c52482ecd0b241d51be8bef9c08c675c (diff) | |
Try to improve the UI for decryption/signing keys by hiding
the details and hopefully providing buttons to do what 99% of
users will want to do (#1003).
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index dd4ec3948..d732e03d3 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -404,3 +404,9 @@ maybe_show_splash () return splash; } + +boost::filesystem::path +path_from_file_dialog (wxFileDialog* dialog, string extension) +{ + return boost::filesystem::path(wx_to_std(dialog->GetPath())).replace_extension(extension); +} |
