projects
/
jenirok
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Daemon's memory usage decreased of about 6 MB.
[jenirok]
/
src
/
daemon
/
main.cpp
diff --git
a/src/daemon/main.cpp
b/src/daemon/main.cpp
index
7dc2b01
..
a07d28e
100644
(file)
--- a/
src/daemon/main.cpp
+++ b/
src/daemon/main.cpp
@@
-19,14
+19,17
@@
#include <QtCore/QCoreApplication>
#include <QtCore/QTranslator>
#include <QtCore/QLocale>
#include <QtCore/QCoreApplication>
#include <QtCore/QTranslator>
#include <QtCore/QLocale>
+#include <QtCore/QString>
+#include <QtCore/QList>
+#include <QDebug>
#include <QtGui/QApplication>
#include "calllistener.h"
#include "settings.h"
int main(int argc, char *argv[])
{
#include <QtGui/QApplication>
#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 && 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")
{
{
if(Settings::instance()->get("autostart") == "0")
{