From 774d215750fc490b6cdefdd1efcc3b785d4e3e7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Tue, 29 Mar 2011 20:53:53 +0000 Subject: [PATCH] don't just crash when it couldn't find chkconfig.ltx git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38134 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyX.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/LyX.cpp b/src/LyX.cpp index aecf1da006..b033e40bd8 100644 --- a/src/LyX.cpp +++ b/src/LyX.cpp @@ -294,8 +294,12 @@ int LyX::exec(int & argc, char * argv[]) top_build_dir_is_one_level_up); } catch (ExceptionMessage const & message) { LYXERR(Debug::LOCALE, message.title_ + ", " + message.details_); +#ifdef _WIN32 + // no console and no Qt here so use a simple message box + MessageBoxA(0, to_ascii(message.details_).c_str(), to_ascii(message.title_).c_str(), 0); + return 1; +#endif } - // FIXME: This breaks out of source build under Windows. locale_init(); // Here we need to parse the command line. At least -- 2.39.2