]> git.lyx.org Git - lyx.git/commitdiff
Do not clear the default master setting when cancelling the browse dialog.
authorVincent van Ravesteijn <vfr@lyx.org>
Fri, 1 Jan 2010 02:45:22 +0000 (02:45 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Fri, 1 Jan 2010 02:45:22 +0000 (02:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32737 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp

index b0373b591f2ca012f30028aa8a6b610ea5750238..91137cbb226f1630296d1128d7fcd082f0b07ca3 100644 (file)
@@ -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);
 }