--- a/src/hugin1/base_wx/PTWXDlg.cpp
+++ b/src/hugin1/base_wx/PTWXDlg.cpp
@@ -37,8 +37,6 @@
 
 // Error reporting
 
-wxWindow* appParent = NULL;
-
 static void PTPrintErrorWX(char* fmt, va_list ap)
 {
     char message[257];
@@ -46,7 +44,7 @@
     vsprintf(message, fmt, ap);
 	
 //		MessageBox(GetFocus(), (LPSTR)message, (LPSTR)"", MB_OK | MB_ICONHAND) ;
-    wxMessageBox(wxString(message,wxConvLocal), _("Panorama Tools"), wxOK | wxICON_HAND,appParent);
+    wxMessageBox(wxString(message,wxConvLocal), _("Panorama Tools"), wxOK | wxICON_HAND);
 }	
 
 
@@ -180,9 +178,8 @@
     return TRUE;
 }
 
-void registerPTWXDlgFcn(wxWindow* parent)
+void registerPTWXDlgFcn()
 {
-    appParent = parent;
     PT_setProgressFcn(&PTProgressWX);
     PT_setErrorFcn(&PTPrintErrorWX);
     PT_setInfoDlgFcn(&PTInfoDlgWX);