summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/main.cpp
authorllornkcor <llornkcor>2002-12-20 01:35:01 (UTC)
committer llornkcor <llornkcor>2002-12-20 01:35:01 (UTC)
commit876e1a4724a7bd75dc642e295de354241096e028 (patch) (unidiff)
treea37c5dcc9d78e04bb6b859ab89d8cf81e6745087 /noncore/apps/opie-reader/main.cpp
parent5fd6636ba3d94b48dd543887316c47c5388a43c2 (diff)
downloadopie-876e1a4724a7bd75dc642e295de354241096e028.zip
opie-876e1a4724a7bd75dc642e295de354241096e028.tar.gz
opie-876e1a4724a7bd75dc642e295de354241096e028.tar.bz2
update - sorry it took so long. hope this works correctly
Diffstat (limited to 'noncore/apps/opie-reader/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/main.cpp b/noncore/apps/opie-reader/main.cpp
index 08f59a8..2440037 100644
--- a/noncore/apps/opie-reader/main.cpp
+++ b/noncore/apps/opie-reader/main.cpp
@@ -6,13 +6,17 @@
6#include "time.h" 6#include "time.h"
7 7
8QTReaderApp* app = NULL; 8QTReaderApp* app = NULL;
9 9
10void handler(int signum) 10void handler(int signum)
11{ 11{
12 if (app != NULL) app->saveprefs(); 12 if (app != NULL)
13 {
14 app->suspend();
15 app->saveprefs();
16 }
13 signal(signum, handler); 17 signal(signum, handler);
14} 18}
15 19
16int main( int argc, char ** argv ) 20int main( int argc, char ** argv )
17{ 21{
18 signal(SIGCONT, handler); 22 signal(SIGCONT, handler);