fix single instance guard on macOS

This commit is contained in:
Le Tan 2020-03-25 18:40:10 +08:00
parent 8c8640f4db
commit 9835e8bbb2

View File

@ -38,8 +38,10 @@ bool VSingleInstanceGuard::tryRun()
m_online = true;
return true;
} else {
qDebug() << "fail to create shared memory segment";
return false;
qWarning() << "fail to create shared memory segment "
"(keep in mind that do not run multiple instances of VNote)";
// On macOS, this happens a lot. Just let it go.
return true;
}
}