Tell the user that LyX is already running when we do not start

because of 'use single instance'.
This commit is contained in:
Richard Kimberly Heck 2020-04-18 14:41:26 -04:00
parent 237378477f
commit d550774772

View 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());