diff --git a/src/plugins/VerticalTabs/tabtreeview.cpp b/src/plugins/VerticalTabs/tabtreeview.cpp index c2168e1c9..06346fa41 100644 --- a/src/plugins/VerticalTabs/tabtreeview.cpp +++ b/src/plugins/VerticalTabs/tabtreeview.cpp @@ -358,7 +358,9 @@ void TabTreeView::initView() TabTreeView::DelegateButton TabTreeView::buttonAt(const QPoint &pos, const QModelIndex &index) const { if (m_delegate->expandButtonRect(index).contains(pos)) { - return ExpandButton; + if (model()->rowCount(index) > 0) { + return ExpandButton; + } } else if (m_delegate->audioButtonRect(index).contains(pos)) { return AudioButton; } else if (m_delegate->closeButtonRect(index).contains(pos)) {