]> git.lyx.org Git - features.git/commitdiff
Fix bug #11635
authorRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 8 Apr 2020 21:50:09 +0000 (17:50 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 16 Apr 2020 21:20:14 +0000 (17:20 -0400)
(cherry picked from commit 46f1f6f1cbf2ddb4de8c4d96e76e3a1bd74f2e07)

src/Server.cpp
status.23x

index 566f8f334400b6594cf587f71f5de43016ff7326..17829da77ca1e1d3ba78e28b91d84e6d2058a10c 100644 (file)
@@ -1002,6 +1002,9 @@ struct Sleep : QThread
 
 bool LyXComm::loadFilesInOtherInstance()
 {
+       if (theFilesToLoad().size() == 0)
+               return true;
+
        int pipefd;
        int loaded_files = 0;
        FileName const pipe(inPipeName());
index ebfac89035294c20909f4625d30e488345a6f98f..acd7e1233b794b9264daadd9b0c652abdbff6ba6 100644 (file)
@@ -67,6 +67,8 @@ What's new
 
 - Fix problems with apostrophe in path on Windows (bug 9368).
 
+- Don't open a new instance just because no files are given (bug 11635).
+
 
 * USER INTERFACE