Revert revision 1.102.2.2:
authorMart Raudsepp <leio@gentoo.org>
Mon, 26 Sep 2005 12:53:29 +0000 (12:53 +0000)
committerMart Raudsepp <leio@gentoo.org>
Mon, 26 Sep 2005 12:53:29 +0000 (12:53 +0000)
date: 2002/10/13 21:03:45;  author: RR;  state: Exp;  lines: +4 -2

  Combox gets its own SetFocus()
  wxDialog() set the focus to itself when shown. This will
    the propagate to some control in the dialog. I am not
    sure if this will override preceding user's call to
    SetFocus() in one of the child windows.
=========================
It will override preceding users call to SetFocus, effectively introducing bug #1288889 (wxWindow::SetFocus does not
work on modal dialogs, and therefore wxButton::SetDefault does not work either). Reverting fixes that. Need to
investigate why it was needed in relation to Comboboxes, but SetFocus/SetDefault breakage is worser imho, hence the
revert for now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dialog.cpp
src/gtk1/dialog.cpp

index c2dee417c52bb9b2f15d44e6c8808c716a6c8ad3..31df13df6b5bc7fc9c2643ec7aee08a2b423eb25 100644 (file)
@@ -202,8 +202,6 @@ int wxDialog::ShowModal()
 
     Show( true );
 
-    SetFocus();
-
     m_modalShowing = true;
 
     g_openDialogs++;
index c2dee417c52bb9b2f15d44e6c8808c716a6c8ad3..31df13df6b5bc7fc9c2643ec7aee08a2b423eb25 100644 (file)
@@ -202,8 +202,6 @@ int wxDialog::ShowModal()
 
     Show( true );
 
-    SetFocus();
-
     m_modalShowing = true;
 
     g_openDialogs++;