Browse Source

one dialog at a time in p3dCert

David Rose 16 years ago
parent
commit
c0c94ad612
2 changed files with 4 additions and 2 deletions
  1. 4 0
      direct/src/plugin/p3dCert.cxx
  2. 0 2
      direct/src/plugin/p3dX11SplashWindow.cxx

+ 4 - 0
direct/src/plugin/p3dCert.cxx

@@ -202,6 +202,7 @@ view_cert_clicked(wxCommandEvent &event) {
   if (_view_cert_dialog != NULL) {
     _view_cert_dialog->Destroy();
   }
+  Hide();
   _view_cert_dialog = new ViewCertDialog(this, _cert);
   _view_cert_dialog->Show();
 }
@@ -563,6 +564,9 @@ run_clicked(wxCommandEvent &event) {
 ////////////////////////////////////////////////////////////////////
 void ViewCertDialog::
 cancel_clicked(wxCommandEvent &event) {
+  if (_auth_dialog != NULL){ 
+    _auth_dialog->Destroy();
+  }
   Destroy();
 }
 

+ 0 - 2
direct/src/plugin/p3dX11SplashWindow.cxx

@@ -173,8 +173,6 @@ set_install_progress(double install_progress,
   doc.LinkEndChild(xcommand);
   write_xml(_pipe_write, &doc, nout);
 
-  write_xml(nout, &doc, nout);
-
   check_stopped();
 }