Skip to content

Commit 0f5e82b

Browse files
committed
Update main.cpp, minor fix with socket ID
1 parent ba02753 commit 0f5e82b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
4040

4141
// CHECK IF THE APPLICATION IS RUNNING
4242
// IF SO, SEND THEM A REQUEST TO ACTIVATE THE WINDOW AND CLOSE THE CURRENT COPY
43-
const QString APP_ID = QCryptographicHash::hash(QString(QCoreApplication::applicationFilePath() + "-" + SOFT_NAME + "-" + SOFT_VERSION).toUtf8(), QCryptographicHash::Md5);
43+
const QString APP_ID = QCryptographicHash::hash(QString(QCoreApplication::applicationFilePath() + "-" + SOFT_NAME + "-" + SOFT_VERSION).toUtf8(), QCryptographicHash::Md5).toHex();
4444

4545
QLocalSocket socket;
4646
socket.connectToServer(APP_ID);

0 commit comments

Comments
 (0)