Some memory usage improvements to daemon.
[jenirok] / src / daemon / main.cpp
index d07a3ea..7613a15 100644 (file)
 #include <QtCore/QLocale>
 #include <QtCore/QString>
 #include <QtGui/QApplication>
-#include <QDebug>
 #include "calllistener.h"
 #include "settings.h"
 
 int main(int argc, char *argv[])
 {
-    // If daemon was started on boot, the first parameter is not set
-    if(!(argc >= 2 && QString(argv[1]) == "-manual"))
+    // If daemon was started on boot, the first parameter is set to "-boot"
+    if(argc >= 2 && QString(argv[1]) == "-boot")
     {
         if(Settings::instance()->get("autostart") == "0")
         {