summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/main.cpp
Side-by-side diff
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 @@
#include "time.h"
QTReaderApp* app = NULL;
void handler(int signum)
{
- if (app != NULL) app->saveprefs();
+ if (app != NULL)
+ {
+ app->suspend();
+ app->saveprefs();
+ }
signal(signum, handler);
}
int main( int argc, char ** argv )
{
signal(SIGCONT, handler);