diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-22 23:27:01 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:02 -0500 |
| commit | 9435202034cafb05ffc11aed48ff57536bce73f7 (patch) | |
| tree | 03c6ad6d1125248dc727d7904721883ac06b616e /src/singleinstance.cpp | |
| parent | f97e40f127441828eb4ffe11841ebf79191ac8a3 (diff) | |
removed flags from SingleInstance because there's only one left
refactoring in main.cpp:
- moved stuff to loglist.cpp and moapplication.cpp
- split main() into a few functions
Diffstat (limited to 'src/singleinstance.cpp')
| -rw-r--r-- | src/singleinstance.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/singleinstance.cpp b/src/singleinstance.cpp index e32c8de1..bd7ccc43 100644 --- a/src/singleinstance.cpp +++ b/src/singleinstance.cpp @@ -28,14 +28,14 @@ static const int s_Timeout = 5000; using MOBase::reportError;
-SingleInstance::SingleInstance(Flags flags, QObject *parent) :
+SingleInstance::SingleInstance(bool allowMultiple, QObject *parent) :
QObject(parent), m_Ephemeral(false), m_OwnsSM(false)
{
m_SharedMem.setKey(s_Key);
if (!m_SharedMem.create(1)) {
if (m_SharedMem.error() == QSharedMemory::AlreadyExists) {
- if (!flags.testFlag(AllowMultiple)) {
+ if (!allowMultiple) {
m_SharedMem.attach();
m_Ephemeral = true;
}
|
