From: Vincent van Ravesteijn Date: Fri, 1 Jan 2010 02:45:22 +0000 (+0000) Subject: Do not clear the default master setting when cancelling the browse dialog. X-Git-Tag: 2.0.0~4616 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8a38b97d6be3c0b0f64061ab6145eca171448405;p=lyx.git Do not clear the default master setting when cancelling the browse dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32737 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index b0373b591f..91137cbb22 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -1533,7 +1533,8 @@ void GuiDocument::browseMaster() QString file = browseRelFile(old, docpath, title, filter, false, qt_("Documents|#o#O"), toqstr(lyxrc.document_path)); - latexModule->childDocLE->setText(file); + if (!file.isEmpty()) + latexModule->childDocLE->setText(file); }