/*
**    Name: menu_quit.c
**
**    Date: Sun Jan  5 11:51:43 1997
**
*/

#include "odbcdm.h"
#include "support.h"

osbool menu_quit(bits event_code,
               toolbox_action *action,
               toolbox_block *block,
               void *handle)
    {
    NOT_USED(event_code);
    NOT_USED(action);
    NOT_USED(block);
    NOT_USED(handle);

/* Check safe to quit and display message if not */

    if (check_quit() == TRUE)
        {
        Quit_Application = TRUE;
        }
    else
        {
        report_error(0,messagetrans_simplelookup("Inst"));
        }

    return TRUE;
    }
