From ad827243fc09cd8d8ab2f1d6407389e4c35cad03 Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Sun, 30 Sep 2012 15:06:21 +0100 Subject: [PATCH] Adding preferences format update as due to commit 4985015 (new close_buffer_with_last_view option). --- lib/scripts/prefs2prefs_prefs.py | 7 ++++++- src/LyXRC.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/scripts/prefs2prefs_prefs.py b/lib/scripts/prefs2prefs_prefs.py index 0716d3802b..977d2612bc 100644 --- a/lib/scripts/prefs2prefs_prefs.py +++ b/lib/scripts/prefs2prefs_prefs.py @@ -46,6 +46,10 @@ # Incremented to format 9, a18af620 by spitz # Remove default_language rc. +# Incremented to format 10, 4985015 by tommaso +# Add close_buffer_with_last_view in preferences. +# No conversion necessary. + import re ########################################################### @@ -257,5 +261,6 @@ conversions = [ [ 6, []], [ 7, [add_mime_types]], [ 8, []], - [ 9, [ remove_default_language ]] + [ 9, [ remove_default_language ]], + [ 10, []] ] diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 0d4c9197cc..52197c2ab6 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -55,7 +55,7 @@ namespace os = support::os; namespace { -static unsigned int const LYXRC_FILEFORMAT = 9; // spitz: remove \\default_language +static unsigned int const LYXRC_FILEFORMAT = 10; // tommaso: new prefs option: close_buffer_with_last_view // when adding something to this array keep it sorted! LexerKeyword lyxrcTags[] = { -- 2.39.5