Skip to content

Commit

Permalink
fix #24138
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Aug 12, 2014
1 parent 47b4909 commit 52ca1fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mscore/inspector/inspector.cpp
Expand Up @@ -123,8 +123,6 @@ void Inspector::setElements(const QList<Element*>& l)
Element* e = l.isEmpty() ? 0 : l[0];
if (e == 0 || _element == 0 || (_el != l)) {
_el = l;
if (ie)
ie->deleteLater();
ie = 0;
_element = e;

Expand Down Expand Up @@ -233,6 +231,9 @@ void Inspector::setElements(const QList<Element*>& l)
break;
}
}
QWidget* ww = sa->takeWidget();
if (ww)
ww->deleteLater();
sa->setWidget(ie);
// setMinimumWidth(ie->width() + sa->frameWidth() * 2 + (width() - sa->width()) + 3);
setMinimumWidth(ie->sizeHint().width() + sa->frameWidth() * 2 + (width() - sa->width()) + 3);
Expand Down

0 comments on commit 52ca1fd

Please sign in to comment.