Mercurial > hg > svgui
changeset 974:6645b6b8356f
Fix failure to show window shape when Analysis tab in preferences is first opened
author | Chris Cannam |
---|---|
date | Fri, 12 Jun 2015 12:24:21 +0100 |
parents | fd934705973f |
children | b8187c83b93a f40ccbf228c2 3871dffc31bd |
files | widgets/WindowShapePreview.cpp widgets/WindowTypeSelector.cpp |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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(); }
--- 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()