]> git.lyx.org Git - features.git/commitdiff
Add comment to fix coverity #23308
authorRichard Heck <rgheck@lyx.org>
Sun, 12 Jun 2016 02:54:15 +0000 (22:54 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 12 Jun 2016 03:09:30 +0000 (23:09 -0400)
src/frontends/qt4/GuiApplication.cpp

index 7d6ca0b730b5147ba7ef1e08d2b7919552e3a8c6..460d7ad4623bd725a591821d557dc8ab63bab51d 100644 (file)
@@ -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;
        }