mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Add comment to fix coverity #23308
This commit is contained in:
parent
2cb6ed9376
commit
fd42194c7e
@ -1673,8 +1673,11 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
current_view_->openDocument(fname);
|
||||
if (current_view_ && !current_view_->documentBufferView())
|
||||
current_view_->close();
|
||||
} else
|
||||
} else {
|
||||
// we know !d->views.empty(), so this should be ok
|
||||
// coverity[FORWARD_NULL]
|
||||
current_view_->openDocument(fname);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user