summaryrefslogtreecommitdiff
path: root/navit/event.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-04-30 19:36:17 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-04-30 19:36:17 +0000
commit7fe94f8f1c4da2136c47dedc63411575bd5d8474 (patch)
tree3904ed8a92f6328c5ee7e19bd110324c739ec0df /navit/event.c
parent683d5ec502b723de7ae342e29a58c5f468857a83 (diff)
downloadnavit-7fe94f8f1c4da2136c47dedc63411575bd5d8474.tar.gz
Fix:gui_internal:Prevent crash after terminating event loop
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3212 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/event.c')
-rw-r--r--navit/event.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/navit/event.c b/navit/event.c
index 64c396e93..daa5de8b7 100644
--- a/navit/event.c
+++ b/navit/event.c
@@ -27,6 +27,8 @@ static struct event_methods event_methods;
static const char *e_requestor;
static const char *e_system;
+static int has_quit;
+
void event_main_loop_run(void)
{
if (! event_methods.main_loop_run) {
@@ -40,6 +42,13 @@ void event_main_loop_quit(void)
{
if (event_methods.main_loop_quit)
event_methods.main_loop_quit();
+ has_quit=1;
+}
+
+int
+event_main_loop_has_quit(void)
+{
+ return has_quit;
}
struct event_watch *