From 2f63794da7acbfcf61558428cd84f590a73fc13f Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Sun, 6 Sep 2015 15:10:51 -0600 Subject: revert to original time --- logging.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'logging.cpp') diff --git a/logging.cpp b/logging.cpp index f9b3100..798f00f 100644 --- a/logging.cpp +++ b/logging.cpp @@ -10,6 +10,8 @@ #include #include #include +#include "pomodori.h" +#include "trayicon.h" struct passwd *pw = getpwuid(getuid()); @@ -21,7 +23,7 @@ void log(tres* res,int code) sqlite3 *db; char *zErrMsg = 0; char sqlop[50]; - sprintf(sqlop,"%s/.pomodori",pw->pw_dir); + sprintf(sqlop,"%s/." APPNAME,pw->pw_dir); int rc = sqlite3_open(sqlop,&db); if( rc ){ fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db)); @@ -36,5 +38,7 @@ void log(tres* res,int code) } sqlite3_close(db); } - exit(0); + delete res->reason; + delete res; + tray_deactivate(); } \ No newline at end of file -- cgit v1.2.3-70-g09d2