From: Bo Peng Date: Wed, 20 Jun 2007 21:07:32 +0000 (+0000) Subject: Fix wrong intepretation of the return value of the prompt() function for the creation... X-Git-Tag: 1.6.10~9328 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=372d174c575a4854056471df2fbd6c702e42a745;p=features.git Fix wrong intepretation of the return value of the prompt() function for the creation of new document git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18838 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index 3ed3249fbb..fd0a4c32e0 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -214,7 +214,7 @@ Buffer * checkAndLoadLyXFile(FileName const & filename) docstring text = bformat(_("The document %1$s does not yet " "exist.\n\nDo you want to create a new document?"), from_utf8(filename.absFilename())); - if (Alert::prompt(_("Create new document?"), + if (!Alert::prompt(_("Create new document?"), text, 0, 1, _("&Create"), _("Cancel"))) return newFile(filename.absFilename(), string(), true);