]> git.lyx.org Git - features.git/commitdiff
Tell the user that LyX is already running when we do not start
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 18 Apr 2020 18:41:26 +0000 (14:41 -0400)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:56 +0000 (15:48 +0200)
because of 'use single instance'.

src/Server.cpp

index ab1b6361eb21375e3fa77ac704f112927fd00cf8..5fb089d758300cc69b3980081fb912afe7e75d4d 100644 (file)
@@ -1002,9 +1002,11 @@ struct Sleep : QThread
 
 bool LyXComm::loadFilesInOtherInstance()
 {
-       if (theFilesToLoad().empty())
+       if (theFilesToLoad().empty()) {
+               LYXERR0("LyX is already running in another instance\n"
+                       "and 'use single instance' is active.");
                return true;
-
+       }
        int pipefd;
        int loaded_files = 0;
        FileName const pipe(inPipeName());