Ticket URL: <
http://trac.wxwidgets.org/ticket/14341>
#14341: After closing Modal dialog, remaining windows are still blocked
--------------------------+-------------------------------------------------
Reporter: jonthn | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: dialog modal | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------
In MKVToolnix there is a main window where you can set-up jobs and queue
them, it's the {{{ mux_dialog }}}
After that you can display the current jobs list {{{ job_dialog }}} which
is a modal dialog. In that window you can start the job which will display
a enhanced progress dialog but not derived from the ProgressDialog class
it's {{{ job_run_dialog }}}
Now if you quit the {{{ job_run_dialog }}} via OK it closes and you can
interact with {{{ job_dialog }}}
But when you close {{{ job_dialog }}} it disappears but doesn't seem to
give back the control to the {{{ mux_dialog }}} or the entries in the
menubar.
I tried making a test case using as a base the samples for Dialog (see
3modal.diff) but I couldn't exactly reproduce the case.
So I patched the source code (by applying patch-debug_modal.diff) and
enabled a debug build, compiled it and packaged binary that can be found
at
http://jonthn.free.fr/debug/mkvtoolnix_debug.dmg
If you launch it from command-line something like :
{{{
$
PATH=/Volumes/Mkvtoolnix-5.5.0_2012-05-27-1a22/Mkvtoolnix.app/Contents/MacOS/:$PATH
/Volumes/Mkvtoolnix-5.5.0_2012-05-27-1a22/Mkvtoolnix.app/Contents/MacOS/mmg
}}}
You will see on stderr the destructor getting called except for the one
from job_dialog.
The complete source code is at
https://github.com/mbunkus/mkvtoolnix/
Useful files are src/mmg/mux_dialog.cpp and src/mmg/jobs.cpp
The current wxWidgets config as reported from wx-config is :
$ ./bin/wx-config --selected-config
osx_cocoa-unicode-static-2.9
$ ./bin/wx-config --version
2.9.4
Available libraries in this build are:
xrc webview stc richtext ribbon propgrid aui html qa adv core xml net
base
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/14341>