Removed assert complaining about out-focus without in-focus, because it happens a lot

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-09-26 14:46:42 +00:00
parent cdddaeea10
commit cc1fcb9584
2 changed files with 10 additions and 2 deletions

View File

@@ -17,6 +17,7 @@
#include "wx/dialog.h"
#include "wx/frame.h"
#include "wx/log.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
@@ -142,7 +143,10 @@ static gint gtk_radiobutton_focus_out( GtkWidget *widget,
GdkEvent *WXUNUSED(event),
wxRadioBox *win )
{
wxASSERT_MSG( win->m_hasFocus, _T("got focus out without any focus in?") );
// wxASSERT_MSG( win->m_hasFocus, _T("got focus out without any focus in?") );
// Replace with a warning, else we dump core a lot!
// if (!win->m_hasFocus)
// wxLogWarning(_T("Radiobox got focus out without any focus in.") );
// we might have lost the focus, but may be not - it may have just gone to
// another button in the same radiobox, so we'll check for it in the next

View File

@@ -17,6 +17,7 @@
#include "wx/dialog.h"
#include "wx/frame.h"
#include "wx/log.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
@@ -142,7 +143,10 @@ static gint gtk_radiobutton_focus_out( GtkWidget *widget,
GdkEvent *WXUNUSED(event),
wxRadioBox *win )
{
wxASSERT_MSG( win->m_hasFocus, _T("got focus out without any focus in?") );
// wxASSERT_MSG( win->m_hasFocus, _T("got focus out without any focus in?") );
// Replace with a warning, else we dump core a lot!
// if (!win->m_hasFocus)
// wxLogWarning(_T("Radiobox got focus out without any focus in.") );
// we might have lost the focus, but may be not - it may have just gone to
// another button in the same radiobox, so we'll check for it in the next