Display the filename / URL that a screen certificate was obtained from (#1894).
[dcpomatic.git] / src / wx / download_certificate_dialog.cc
index 4a80dc9c03b0b4cb3e7ddaa22a9dd126e9ee6131..8f4720252f09975d0854b3cd614c682699335335 100644 (file)
@@ -30,6 +30,7 @@
 #include "wx_util.h"
 
 
+using std::string;
 using boost::optional;
 
 
@@ -102,6 +103,16 @@ DownloadCertificateDialog::certificate () const
        return *c;
 }
 
+
+string
+DownloadCertificateDialog::url () const
+{
+       auto u = _pages[_notebook->GetSelection()]->url();
+       DCPOMATIC_ASSERT (u);
+       return *u;
+}
+
+
 void
 DownloadCertificateDialog::setup_sensitivity ()
 {