In KIFACE_I::end_common save the 'common' configuration variables loaded in KIFACE_I::begin_common (the background color and the page border flag)

This commit is contained in:
Lorenzo Marcantonio 2014-06-12 20:34:16 +02:00
parent bee6b9f9b7
commit bb79ec84bc
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}