Salome HOME
Really create new application on new study loading, as the bug with <pure virtual...
authorjfa <jfa@opencascade.com>
Thu, 30 Jun 2005 09:14:51 +0000 (09:14 +0000)
committerjfa <jfa@opencascade.com>
Thu, 30 Jun 2005 09:14:51 +0000 (09:14 +0000)
src/STD/STD_Application.cxx

index b23c978dac74aed1e7ef628ebf4636905b1e551c..179083d1e8166b93694492f503572fc9accb4610 100755 (executable)
@@ -231,11 +231,7 @@ bool STD_Application::onOpenDoc( const QString& aName )
   if ( !activeStudy() )
   {
     // if no study - open in current desktop
-    // jfa 21.06.2005:createEmptyStudy();
-    // jfa 21.06.2005:res = activeStudy()->openDocument( aName );
-    // jfa 21.06.2005:updateDesktopTitle();
-    // jfa 21.06.2005:updateCommandsStatus();
-    res = useFile( aName ); // jfa 21.06.2005
+    res = useFile( aName );
   }
   else
   {
@@ -285,11 +281,7 @@ bool STD_Application::onLoadDoc( const QString& aName )
     }
     if ( !isAlreadyOpen )
     {
-      // temporary commented because of "pure virtual method called" execution error.
-      // current state of code is not right, but works somehow.
-      // SALOMEDS::Study of the first found application is replaced by the new one,
-      // while normally the new study must be used by a new application
-      //jfa tmp:aApp = startApplication( 0, 0 );
+      aApp = startApplication( 0, 0 );
       if ( aApp )
         res = aApp->useStudy( aName );
     }