diff --git a/src/tools/qml/qmlobserver/editor/crumblepath.cpp b/src/tools/qml/qmlobserver/editor/crumblepath.cpp index dc9d2d9423070d8eda42688e6f444b5c3d686073..4fdbfefc49d369072c7d4e78ef88e765c42eaf51 100644 --- a/src/tools/qml/qmlobserver/editor/crumblepath.cpp +++ b/src/tools/qml/qmlobserver/editor/crumblepath.cpp @@ -181,8 +181,6 @@ void CrumblePath::resizeEvent(QResizeEvent *) void CrumblePath::resizeButtons() { - Q_ASSERT(!m_buttons.isEmpty()); - int buttonWidth = 0; if (m_buttons.length() > 1) { QPoint nextElementPosition(0,0); @@ -202,7 +200,7 @@ void CrumblePath::resizeButtons() button->stackUnder(m_buttons[i - 1]); } - } else { + } else if (m_buttons.length() == 1) { QWidget *button = m_buttons[0]; int buttonWidth = 2 * width() / (3 * m_buttons.length());