[Psi-devel] [BUG] Psi prohibits user logout or system shutdown
textshell-I1QKlO at neutronstar.dyndns.org
textshell-I1QKlO at neutronstar.dyndns.org
Mon Jul 9 15:07:17 PDT 2007
On Mon, Jul 09, 2007 at 10:49:23PM +0200, Michał Jazłowiecki wrote:
> textshell wrote:
>
> > Yes, this is a know Problem but i forgot to add it to flyspray too.
>
> :)
>
> > I think the right fix is to let Qt handle the message as normal, after
> > psi did notice it and did it's own processing, so that it will be
> > processed by DefaultWindowProc (or how was that one called) somewhere
> > inside Qt.
>
> It just might work. However, what about file transfers in progress? I
> mean, if user has FT in progress and Psi receives WM_QUERYENDSESSION,
> then it would be wise to ask user whether to break the FT and allow
> system for user logout or system shutdown. DefaultWindowProc would not
> do that.
Yes, but that's something for post 0.11, because that's a new feature.
>
> > I'll fix it in darcs today or tomorrow...
>
> I've just made my own quick-fix. Just a proof of concept. I'll test it
> tomorrow.
I think we will just change the return true; to return false; in
PsiApplication::winEventFilter for 0.11. Can you test that it does fix
the problem? it's much nicer to push actually tested patches to
mainline ;)
>
> So, my question is: How to get the information whether any FT is in
> progress?
>
>
i think you can dig that information out somewhere from filetransdlg.cpp.
I didn't yet had to work with the gui parts of the file transfer code.
- Martin H.
More information about the psi-devel
mailing list