From: Abdelrazak Younes Date: Fri, 3 Oct 2008 13:17:22 +0000 (+0000) Subject: GuiView::findOrBuild(): hide the dialog if requested and the dialog already exists. X-Git-Tag: 1.6.10~3207 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e29edccc3f4d91a1647b180a10f54f8e39cf34a1;p=lyx.git GuiView::findOrBuild(): hide the dialog if requested and the dialog already exists. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26695 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index f1e8e7c666..567680d324 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -2248,8 +2248,11 @@ Dialog * GuiView::findOrBuild(string const & name, bool hide_it) map::iterator it = d.dialogs_.find(name); - if (it != d.dialogs_.end()) + if (it != d.dialogs_.end()) { + if (hide_it) + it->second->hideView(); return it->second.get(); + } Dialog * dialog = build(name); d.dialogs_[name].reset(dialog);