From e572daf28631b64dab008b52e239f78d4089587a Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sat, 18 Apr 2020 14:41:26 -0400 Subject: [PATCH] Tell the user that LyX is already running when we do not start because of 'use single instance'. --- src/Server.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Server.cpp b/src/Server.cpp index ab1b6361eb..5fb089d758 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -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()); -- 2.39.5