mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Corrected file URL used in viewer.
This commit is contained in:
+2
-4
@@ -22,14 +22,12 @@
|
||||
*/
|
||||
|
||||
#include "viewer.h"
|
||||
#include "../backend/helpers.h"
|
||||
|
||||
#include <wx/webview.h>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
Viewer::Viewer(wxWindow *parent, const wxString& title, const std::string& path) : wxFrame(parent, wxID_ANY, title) {
|
||||
wxWebView * web = wxWebView::New(this, wxID_ANY, "file://" + fs::absolute(path).string());
|
||||
wxWebView * web = wxWebView::New(this, wxID_ANY, boss::ToFileURL(path));
|
||||
|
||||
wxBoxSizer* topsizer = new wxBoxSizer(wxVERTICAL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user