summaryrefslogtreecommitdiffstats
path: root/src/crsm.cpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2015-10-15 23:09:51 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2015-10-15 23:09:51 +0200
commit3bb1f7d2ce551f799e1509eb1085641f81866eed (patch)
treed5621390d91c0f5caab0077e94799ebb3bfe343c /src/crsm.cpp
parentf6f6860c0365409a0389681e65e5c46b56db1690 (diff)
downloadmanager-3bb1f7d2ce551f799e1509eb1085641f81866eed.tar.gz
manager-3bb1f7d2ce551f799e1509eb1085641f81866eed.zip
Move CRSM_SESSION_FILE into Config.CRSM.SessionFile
Diffstat (limited to 'src/crsm.cpp')
-rw-r--r--src/crsm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp
index 72c5167..fb20ebf 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -59,10 +59,10 @@ CRSM::CRSM(QObject *parent) :
if(processManager->isRunning())
{
- Session.read(SESSION_FILE_NAME, false);
+ Session.read(Config.CRSM.SessionFile, false);
writeToServer("Der Server Manager läuft wieder.\nBis zur nächsten Runde könnte unerwartetes Verhalten auftreten.\n");
}
- QFile sessionFile(SESSION_FILE_NAME);
+ QFile sessionFile(Config.CRSM.SessionFile);
if(sessionFile.exists()) sessionFile.remove();
connect(&greetMapper, SIGNAL(mapped(QString)), this, SLOT(greet(QString)));
@@ -299,7 +299,7 @@ void CRSM::readInput()
}
Config.Auto.ProcessManager.ReattachId = processManager->ID();
writeConfig();
- Session.write(SESSION_FILE_NAME);
+ Session.write(Config.CRSM.SessionFile);
QCoreApplication::quit();
return;
}
@@ -2163,7 +2163,7 @@ CMD_FUNCTION_IMPL(exit)
CMD_FUNCTION_IMPL(exitDetach)
Config.Auto.ProcessManager.ReattachId = processManager->ID();
writeConfig();
- Session.write(SESSION_FILE_NAME);
+ Session.write(Config.CRSM.SessionFile);
QCoreApplication::quit();
}