Skip to content

Commit

Permalink
QuasiModal needs to be used for any dialog hosting a help window.
Browse files Browse the repository at this point in the history
  • Loading branch information
jey5nd6 committed Oct 28, 2020
1 parent d26d93b commit 5a644aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion 3d-viewer/3d_cache/dialogs/3d_cache_dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ bool S3D::Configure3DPaths( wxWindow* aParent, FILENAME_RESOLVER* aResolver )
{
DIALOG_CONFIGURE_PATHS dlg( aParent, aResolver );

return( dlg.ShowModal() == wxID_OK );
// Use QuasiModal so that HTML help window will work
return( dlg.ShowQuasiModal() == wxID_OK );
}
3 changes: 2 additions & 1 deletion common/tool/common_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ int COMMON_CONTROL::ConfigurePaths( const TOOL_EVENT& aEvent )
{
DIALOG_CONFIGURE_PATHS dlg( m_frame, nullptr );

if( dlg.ShowModal() == wxID_OK )
// Use QuasiModal so that HTML help window will work
if( dlg.ShowQuasiModal() == wxID_OK )
m_frame->Kiway().CommonSettingsChanged( true, false );
}

Expand Down
3 changes: 2 additions & 1 deletion pcbnew/pcbnew.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ static struct IFACE : public KIFACE_I
// module. So set it directly.
dlg.SetKiway( &dlg, aKiway );

if( dlg.ShowModal() == wxID_OK )
// Use QuasiModal so that HTML help window will work
if( dlg.ShowQuasiModal() == wxID_OK )
aKiway->CommonSettingsChanged( true, false );

// Dialog has completed; nothing to return.
Expand Down

0 comments on commit 5a644aa

Please sign in to comment.