From dce0a0f2bf08bbc42dcd97fa9ced44739c7c7763 Mon Sep 17 00:00:00 2001 From: sandman Date: Wed, 30 Oct 2002 00:38:55 +0000 Subject: Workaround for some obscure gcc bug -- this fixes bug #363 I had to reorderd some lines, because if ( m_style_changed ) is always false if the preceding instruction is bool newtabpos = m_tabstyle_top-> isChecked ( ); --- (limited to 'noncore/settings') diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp index 4132b30..303e0b9 100644 --- a/noncore/settings/appearance2/appearance.cpp +++ b/noncore/settings/appearance2/appearance.cpp @@ -380,6 +380,8 @@ Appearance::Appearance( QWidget* parent, const char* name, WFlags ) top-> addWidget ( m_sample, 1 ); tw-> setCurrentTab ( styletab ); + + m_style_changed = m_font_changed = m_color_changed = m_deco_changed = false; } Appearance::~Appearance() @@ -388,12 +390,11 @@ Appearance::~Appearance() void Appearance::accept ( ) { - Config config("qpe"); - config.setGroup( "Appearance" ); - - int newtabstyle = m_tabstyle_list-> currentItem ( ); bool newtabpos = m_tabstyle_top-> isChecked ( ); + int newtabstyle = m_tabstyle_list-> currentItem ( ); + Config config ( "qpe" ); + config. setGroup ( "Appearance" ); if ( m_style_changed ) { StyleListItem *item = (StyleListItem *) m_style_list-> item ( m_style_list-> currentItem ( )); -- cgit v0.9.0.2