ContextView: Avoid unnecessary album resize
This commit is contained in:
parent
5cb88efc38
commit
fa834a76ef
|
@ -294,7 +294,10 @@ ContextView::ContextView(QWidget *parent)
|
|||
|
||||
void ContextView::resizeEvent(QResizeEvent*) {
|
||||
|
||||
widget_album_->setFixedSize(width() - 15, width());
|
||||
if (width() != prev_width_) {
|
||||
widget_album_->setFixedSize(width() - 15, width());
|
||||
prev_width_ = width();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue