Issue 65942 - Throwing a TerminationVetoException() from a hidden task prevents OO windows from closing
Summary: Throwing a TerminationVetoException() from a hidden task prevents OO windows ...
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.0.2
Hardware: All All
: P3 Trivial with 5 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL: http://api.openoffice.org/servlets/Br...
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-31 07:36 UTC by tobiaskrais
Modified: 2013-02-07 21:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tobiaskrais 2006-05-31 07:36:35 UTC
I added a terminate Listener to my xDesktop:
-----%<-----
xDesktop.addTerminateListener(new com.sun.star.frame.XTerminateListener() {
    public void queryTermination(EventObject arg0)
            throws com.sun.star.frame.TerminationVetoException {
        // Disallow termination
        throw new com.sun.star.frame.TerminationVetoException();   
    }
            
    public void notifyTermination(EventObject arg0) {
    }
            
    public void disposing(EventObject arg0) {
    }
});
-----%<-----

My task runs in hidden mode. If a user now wants to close his last OO windows
(File -> Exit), this is prevented.

Please allow closing open Windows if hidden tasks are running and throwing a
TerminateVetoException.

Please read also the Thread in the URL. Mathias Bauer described the problem very
well.

Thanks, Tobias
Comment 1 jbf.faure 2008-01-03 07:14:26 UTC
considering the thread in the url, perhaps the status should be changed ?
Comment 2 groverblue 2008-11-25 21:16:07 UTC
*** Issue 65942 has been confirmed by votes. ***