From bb79ec84bc285adfd9cb1f53fc7e33ef3a80a2f3 Mon Sep 17 00:00:00 2001 From: Lorenzo Marcantonio Date: Thu, 12 Jun 2014 20:34:16 +0200 Subject: [PATCH] In KIFACE_I::end_common save the 'common' configuration variables loaded in KIFACE_I::begin_common (the background color and the page border flag) --- common/kiface_i.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/kiface_i.cpp b/common/kiface_i.cpp index 3693d1998d..42d7799597 100644 --- a/common/kiface_i.cpp +++ b/common/kiface_i.cpp @@ -123,6 +123,11 @@ bool KIFACE_I::start_common( int aCtlBits ) void KIFACE_I::end_common() { + /* Save common preferences; the background still uses the old legacy + * color numbers, not the new names */ + m_bm.m_config->Write( showPageLimitsKey, g_ShowPageLimits ); + m_bm.m_config->Write( backgroundColorKey, int( g_DrawBgColor ) ); + m_bm.End(); }