Georg Baum 2a64df96f9 Fix bug 2404
* src/lyx_cb.C
	(newFile): Only set the new buffer if it is valid

	* src/BufferView_pimpl.C
	(BufferView::Pimpl::loadLyXFile): Test whether newFile succeeded

	* src/lyxfunc.C
	(LyXFunc::menuNew): Only set the new buffer if it is valid
	(LyXFunc::open): ditto

	* src/importer.C
	(Importer::Import): ditto

	* src/lyx_main.C
	(LyX::exec2): Only use the new buffer if newFile succeeded

	* src/buffer_funcs.C
	(newFile): discard the buffer and return 0 if the template is invalid

	* src/BufferView_pimpl.[Ch]
	(BufferView::Pimpl::newFile): remove, not used anymore

	* src/BufferView.C
	(BufferView::newFile): remove, not used anymore


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14623 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 12:31:19 +00:00
..
2006-07-06 14:26:07 +00:00
2006-07-12 14:16:10 +00:00
2006-08-11 21:40:24 +00:00
2006-08-08 10:29:43 +00:00
2003-10-06 15:43:21 +00:00
2003-10-06 15:43:21 +00:00
2005-04-26 10:30:24 +00:00
2004-10-05 10:11:42 +00:00
2006-08-12 12:31:19 +00:00
2006-01-01 20:28:05 +00:00
2006-03-24 11:59:09 +00:00
2006-08-12 12:31:19 +00:00
2006-08-12 12:31:19 +00:00
2006-08-12 12:31:19 +00:00
2006-08-12 12:31:19 +00:00
2004-10-05 10:11:42 +00:00
2003-10-06 15:43:21 +00:00
2005-04-26 11:12:20 +00:00
2005-01-27 21:05:44 +00:00
2003-10-06 15:43:21 +00:00
2005-01-27 21:05:44 +00:00
2003-10-06 15:43:21 +00:00
2005-07-18 12:13:32 +00:00
2005-07-18 12:13:32 +00:00
2006-01-19 15:49:21 +00:00
2006-08-08 22:13:36 +00:00
2003-10-13 01:01:33 +00:00
2003-10-06 15:43:21 +00:00
2004-03-25 09:16:36 +00:00
2006-04-26 11:44:26 +00:00
2004-01-26 10:13:15 +00:00
2003-10-06 15:43:21 +00:00
2004-10-05 10:11:42 +00:00
2003-10-06 15:43:21 +00:00
2004-11-16 20:41:38 +00:00
2005-07-18 12:13:32 +00:00
2004-11-26 14:52:54 +00:00
2005-04-21 13:03:45 +00:00
2005-07-17 11:58:54 +00:00
2003-10-08 11:31:51 +00:00
2006-02-03 21:47:25 +00:00
2006-08-12 12:31:19 +00:00
2003-10-06 15:43:21 +00:00
2004-10-05 10:11:42 +00:00
2003-10-06 15:43:21 +00:00
2005-07-16 15:55:36 +00:00
2004-10-05 10:11:42 +00:00
2006-05-29 17:28:02 +00:00
2006-04-26 11:44:26 +00:00
2003-09-12 17:13:22 +00:00
2005-06-17 14:35:19 +00:00
2005-06-17 14:35:19 +00:00
2006-08-12 12:31:19 +00:00
2006-08-12 12:31:19 +00:00
2004-10-05 10:11:42 +00:00
2004-04-26 11:05:19 +00:00
2005-10-07 12:00:41 +00:00
2004-01-15 17:34:44 +00:00
2006-02-27 12:22:36 +00:00
2005-07-16 18:25:58 +00:00
2006-08-12 12:31:19 +00:00
2003-10-06 15:43:21 +00:00
2005-05-12 10:16:04 +00:00
2005-05-12 10:16:04 +00:00
2004-12-29 15:38:48 +00:00
2005-01-27 21:05:44 +00:00
2005-01-27 21:05:44 +00:00
2004-02-13 13:51:12 +00:00
2004-02-13 13:51:12 +00:00
2004-11-30 01:59:49 +00:00
2005-04-26 11:12:20 +00:00
2004-10-05 10:11:42 +00:00
2006-03-24 11:59:09 +00:00
2006-03-24 11:59:09 +00:00
2004-02-25 12:00:53 +00:00
2003-11-03 17:47:28 +00:00
2005-01-31 10:42:26 +00:00
2006-03-28 09:16:38 +00:00
2006-02-03 21:47:25 +00:00
2006-01-01 20:28:05 +00:00
2006-01-28 20:13:10 +00:00
2005-04-26 10:30:24 +00:00
2006-08-08 21:17:08 +00:00
2005-07-15 19:10:25 +00:00
2003-11-05 15:29:49 +00:00
2006-01-09 21:00:24 +00:00
2006-01-09 21:00:24 +00:00
2006-05-25 11:47:33 +00:00
2006-04-26 11:44:26 +00:00
2005-04-26 10:30:24 +00:00
2003-10-06 15:43:21 +00:00
2003-10-06 15:43:21 +00:00
2005-01-27 21:05:44 +00:00
2005-01-27 21:05:44 +00:00
2006-03-24 17:37:15 +00:00
2006-08-11 21:40:24 +00:00
2003-11-03 17:47:28 +00:00
2004-04-21 00:19:27 +00:00
2003-11-03 17:47:28 +00:00
2003-10-06 15:43:21 +00:00
2003-10-06 15:43:21 +00:00
2006-03-24 17:37:15 +00:00
2006-03-24 17:37:15 +00:00
2003-10-06 15:43:21 +00:00
2005-04-26 11:12:20 +00:00
2003-10-06 15:43:21 +00:00
2006-07-13 08:10:53 +00:00
2006-01-01 20:28:05 +00:00
2003-10-07 08:16:04 +00:00