From c7101be7d8a077eba563a6fd6f15ec8169eeca51 Mon Sep 17 00:00:00 2001 From: Thomas Tanner Date: Sat, 25 Jun 2016 11:47:15 +0100 Subject: Some refactoring of the spawn code and to make waitForApplication get the right error code (usually) A note: It is possible for the executed program to completely exit before MO attempts to get hold of the pid from the job handle, in which case strangeness will happen (this has always been an issue) --- src/mainwindow.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index 177048b4..8e63a14f 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -118,6 +118,7 @@ public: virtual void lock() override; virtual void unlock() override; virtual bool unlockClicked() override; + virtual void setProcessName(QString const &name) override; bool addProfile(); void updateBSAList(const QStringList &defaultArchives, const QStringList &activeArchives); @@ -350,6 +351,7 @@ private: bool m_DidUpdateMasterList; LockedDialog *m_LockDialog { nullptr }; + uint64_t m_LockCount { 0 }; MOBase::DelayedFileWriter m_ArchiveListWriter; -- cgit v1.3.1