mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Viewer now takes wxString URL to try avoiding encoding issues.
Part of issue #94.
This commit is contained in:
+2
-2
@@ -26,8 +26,8 @@
|
||||
|
||||
#include <wx/webview.h>
|
||||
|
||||
Viewer::Viewer(wxWindow *parent, const wxString& title, const std::string& path) : wxFrame(parent, wxID_ANY, title) {
|
||||
wxWebView * web = wxWebView::New(this, wxID_ANY, boss::ToFileURL(path));
|
||||
Viewer::Viewer(wxWindow *parent, const wxString& title, const wxString& url) : wxFrame(parent, wxID_ANY, title) {
|
||||
wxWebView * web = wxWebView::New(this, wxID_ANY, url);
|
||||
|
||||
web->Bind(wxEVT_WEBVIEW_NAVIGATING, &Viewer::OnNavigationStart, this);
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
|
||||
class Viewer : public wxFrame {
|
||||
public:
|
||||
Viewer(wxWindow *parent, const wxString& title, const std::string& path);
|
||||
Viewer(wxWindow *parent, const wxString& title, const wxString& url);
|
||||
|
||||
void OnNavigationStart(wxWebViewEvent& event);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user