diff --git a/src/gui/BrowserDialog.cxx b/src/gui/BrowserDialog.cxx index a60c4cb55..a4670b993 100644 --- a/src/gui/BrowserDialog.cxx +++ b/src/gui/BrowserDialog.cxx @@ -128,8 +128,7 @@ void BrowserDialog::show(GuiObject* parent, const GUI::Font& font, if(w > uInt32(font.getMaxCharWidth() * 80)) w = font.getMaxCharWidth() * 80; - if(ourBrowser == nullptr - || ourBrowser->getWidth() != int(w) || ourBrowser->getHeight() != int(h)) + if(ourBrowser == nullptr || &ourBrowser->parent() != &parent->parent()) ourBrowser = make_unique(parent, font, w, h); ourBrowser->setTitle(title); // has to be always updated!