From: <hug...@li...> - 2012-05-29 15:30:47
|
branch: gui_overhaul details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgroot/hugin/hugin/rev/798b703dc95b changeset: 5820:798b703dc95b user: tmodes date: Tue May 29 17:08:51 2012 +0200 description: Show a messagebox correctly diffstat: src/hugin1/hugin/GLViewer.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r ab9192a60c64 -r 798b703dc95b src/hugin1/hugin/GLViewer.cpp --- a/src/hugin1/hugin/GLViewer.cpp Tue May 22 19:22:23 2012 +0200 +++ b/src/hugin1/hugin/GLViewer.cpp Tue May 29 17:08:51 2012 +0200 @@ -284,7 +284,7 @@ DEBUG_ERROR("Error initialising GLEW: " << glewGetErrorString(error_state) << "."); frame->Close(); - wxMessageBox(_("Error initializing GLEW\nFast preview window can not be opened."),_("Error"), wxOK | wxICON_ERROR,MainFrame::Get()); + wxMessageBox(_("Error initializing GLEW\nFast preview window can not be opened."),_("Error"), wxOK | wxICON_ERROR,wxTheApp->GetTopWindow()); return; } } @@ -294,7 +294,7 @@ started_creation=false; DEBUG_ERROR("Sorry, OpenGL 1.1 + GL_ARB_multitexture extension required."); frame->Close(); - wxMessageBox(_("Sorry, the fast preview window requires a system which supports OpenGL version 1.1 with the GL_ARB_multitexture extension.\nThe fast preview cannot be opened."),_("Error"), wxOK | wxICON_ERROR,MainFrame::Get()); + wxMessageBox(_("Sorry, the fast preview window requires a system which supports OpenGL version 1.1 with the GL_ARB_multitexture extension.\nThe fast preview cannot be opened."),_("Error"), wxOK | wxICON_ERROR,wxTheApp->GetTopWindow()); return; } |