Skip to content

Commit

Permalink
removed potential crash when opening a url opens a new window
Browse files Browse the repository at this point in the history
  • Loading branch information
galenbwill committed Feb 7, 2024
1 parent 06653ae commit 9126a64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/uinotification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ void NotificationListener::OnAfterCloseFile(UIContext* context, FileContext* fil

void NotificationListener::OnViewChange(UIContext* context, ViewFrame* frame, const QString& type)
{
GlobalDebuggerUI::GetForContext(context)->SetActiveFrame(frame);
auto ui = GlobalDebuggerUI::GetForContext(context);
if (ui != nullptr)
ui->SetActiveFrame(frame);
}


Expand Down

0 comments on commit 9126a64

Please sign in to comment.