# HG changeset patch # User Chris Cannam # Date 1434108261 -3600 # Node ID 6645b6b8356f81bd2a611f8539d1f034ae129009 # Parent fd934705973f2806ebf2624f0416341f545e8b50 Fix failure to show window shape when Analysis tab in preferences is first opened diff -r fd934705973f -r 6645b6b8356f widgets/WindowShapePreview.cpp --- a/widgets/WindowShapePreview.cpp Fri May 22 10:42:15 2015 +0100 +++ b/widgets/WindowShapePreview.cpp Fri Jun 12 12:24:21 2015 +0100 @@ -209,7 +209,6 @@ void WindowShapePreview::setWindowType(WindowType type) { - if (m_windowType == type) return; m_windowType = type; updateLabels(); } diff -r fd934705973f -r 6645b6b8356f widgets/WindowTypeSelector.cpp --- a/widgets/WindowTypeSelector.cpp Fri May 22 10:42:15 2015 +0100 +++ b/widgets/WindowTypeSelector.cpp Fri Jun 12 12:24:21 2015 +0100 @@ -78,7 +78,9 @@ connect(m_windowCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(windowIndexChanged(int))); - windowIndexChanged(index); + + m_windowType = defaultType; + m_windowShape->setWindowType(m_windowType); } WindowTypeSelector::~WindowTypeSelector()