add safety check

This commit is contained in:
SoftFever 2023-01-04 09:16:41 +08:00
parent 515bd11477
commit 6d99cfbaa2

View file

@ -63,7 +63,8 @@ void PrinterWebView::load_url(wxString& url)
{
// this->Show();
// this->Raise();
if (m_browser == nullptr)
return;
m_browser->LoadURL(url);
//m_browser->SetFocus();
UpdateState();