Try to improve the UI for decryption/signing keys by hiding
[dcpomatic.git] / src / wx / wx_util.cc
index dd4ec3948765bbcdbf9946c8d0a923c3a669f24e..d732e03d305259d37d71b55291afb22146a53da4 100644 (file)
@@ -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);
+}