instance per user
parent
63c09b46aa
commit
71ec8dba73
|
@ -48,6 +48,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
QLocalServer srv;
|
||||
srv.setSocketOptions(QLocalServer::UserAccessOption);
|
||||
srv.listen(socketName);
|
||||
QObject::connect(&srv, &QLocalServer::newConnection, &srv, [&]() {
|
||||
auto s = srv.nextPendingConnection();
|
||||
|
|
Loading…
Reference in New Issue