From 997b7d6f5b41c940c340e22b6c4116004ce717cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Fri, 22 Jul 2022 18:41:12 +0200 Subject: [PATCH] Gui/GuiPrivate: don't cast qint64 to Q_PID On Windows Q_PID is an _PROCESS_INFORMATION struct, on Unix Q_PID is an qint64. --- Gui/GuiPrivate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gui/GuiPrivate.cpp b/Gui/GuiPrivate.cpp index ea2d61c874..e58787594b 100644 --- a/Gui/GuiPrivate.cpp +++ b/Gui/GuiPrivate.cpp @@ -612,7 +612,7 @@ GuiPrivate::checkProjectLockAndWarn(const QString& projectPath, qint64 curPid = (qint64)QCoreApplication::applicationPid(); if (lockPID != curPid) { QString appFilePath = QCoreApplication::applicationFilePath(); - if ( ProcInfo::checkIfProcessIsRunning(appFilePath.toStdString().c_str(), (Q_PID)lockPID) ) { + if ( ProcInfo::checkIfProcessIsRunning(appFilePath.toStdString().c_str(), lockPID) ) { StandardButtonEnum rep = Dialogs::questionDialog( tr("Project").toStdString(), tr("This project may be open in another instance of Natron " "running on %1 as process ID %2, "