* create a new window for a help file if there is none

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27024 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-10-22 18:15:09 +00:00
parent 90ea041ada
commit 82e603cf0c

View File

@ -1029,7 +1029,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
break; break;
case LFUN_HELP_OPEN: { case LFUN_HELP_OPEN: {
LASSERT(lyx_view_, /**/); if (lyx_view_ == 0)
theApp()->dispatch(FuncRequest(LFUN_WINDOW_NEW));
string const arg = argument; string const arg = argument;
if (arg.empty()) { if (arg.empty()) {
setErrorMessage(from_ascii(N_("Missing argument"))); setErrorMessage(from_ascii(N_("Missing argument")));