modify the hack that doesn't break in some cases

This commit is contained in:
Marco Martin 2012-07-13 10:47:31 +02:00
parent 8a04030fdf
commit d2f729d000

View File

@ -198,8 +198,9 @@ void DialogProxy::setVisible(const bool visible)
{
if (m_dialog->isVisible() != visible) {
//FIXME: workaround to prevent dialogs of Popup type disappearing on the second show
const QSize s = m_dialog->size();
m_dialog->resize(0,0);
m_dialog->syncToGraphicsWidget();
m_dialog->resize(s);
m_dialog->setVisible(visible);
if (visible) {
m_dialog->raise();