add safety check

This commit is contained in:
SoftFever
2023-01-05 19:44:33 +08:00
parent 515bd11477
commit 6d99cfbaa2
+2 -1
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();