diff options
Diffstat (limited to 'src/plugins/Ui/skinned/playlistheader.cpp')
| -rw-r--r-- | src/plugins/Ui/skinned/playlistheader.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/Ui/skinned/playlistheader.cpp b/src/plugins/Ui/skinned/playlistheader.cpp index 7597b1728..79de5aa0e 100644 --- a/src/plugins/Ui/skinned/playlistheader.cpp +++ b/src/plugins/Ui/skinned/playlistheader.cpp @@ -391,15 +391,15 @@ void PlayListHeader::resizeEvent(QResizeEvent *e) int delta = e->size().width() - e->oldSize().width(); int index = m_model->autoResizeColumn(); - if(layoutDirection() == Qt::RightToLeft) - updateColumns(); - - if(e->oldSize().width() <= 10) + if(index >= 0 && e->oldSize().width() > 10) + { + m_model->resize(index, m_model->size(index) + delta); + updateColumns(); return; + } - if(index >= 0) + if(layoutDirection() == Qt::RightToLeft || e->oldSize().height() != e->size().height()) { - m_model->resize(index, m_model->size(index) + delta); updateColumns(); return; } |
