diff --git a/include/window.cpp b/include/window.cpp index 70d5854be..8a3c830d5 100755 --- a/include/window.cpp +++ b/include/window.cpp @@ -368,11 +368,11 @@ WINDOW cur_win() if (w != NULL) { win = w->win(); - if (!is_valid_window(w->win())) + /*if (!is_valid_window(win)) { w->stop_run(K_FORCE_CLOSE); win = NULL_WIN; - } + }*/ } return win; } diff --git a/xvaga/xvtwin.cpp b/xvaga/xvtwin.cpp index 8385f6434..c376c6312 100755 --- a/xvaga/xvtwin.cpp +++ b/xvaga/xvtwin.cpp @@ -468,20 +468,14 @@ bool TwxWindowBase::CreateBase(wxWindow *parent, wxWindowID id, const wxString & // Evita inutili sfarfallamenti in quanto wxWidgets crea le finestre visibili per default wxWindowBase::Show(false); bool ok = Create(parent, id, pos, size, style, title); - if (ok) - { -#if wxCHECK_VERSION(2,8,0) -#else - SetTitle(title); // Triste necessita', la Create sembra ignorare il titolo -#endif - } + return ok; } TwxWindowBase::TwxWindowBase(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos, const wxSize &size, long style) { - wxASSERT(CreateBase(parent, id, title, pos, size, style)); + CreateBase(parent, id, title, pos, size, style); } IMPLEMENT_DYNAMIC_CLASS(TwxWindow, TwxWindowBase)