--- a/src/hugin1/hugin/MainFrame.cpp
+++ b/src/hugin1/hugin/MainFrame.cpp
@@ -932,7 +932,7 @@
            new wxLoadPTProjectCmd(pano,(const char *)filename.mb_str(HUGIN_CONV_FILENAME), (const char *)path.mb_str(HUGIN_CONV_FILENAME), true)
            );
         GlobalCmdHist::getInstance().clear();
-        registerPTWXDlgFcn(wxGetApp().GetTopWindow());
+        registerPTWXDlgFcn();
         DEBUG_DEBUG("project contains " << pano.getNrOfImages() << " after load");
         GuiLevel reqGuiLevel=GetMinimumGuiLevel(pano);
         if(reqGuiLevel>m_guiLevel)