]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
IPAL9137
authorstv <stv@opencascade.com>
Fri, 17 Jun 2005 08:41:00 +0000 (08:41 +0000)
committerstv <stv@opencascade.com>
Fri, 17 Jun 2005 08:41:00 +0000 (08:41 +0000)
src/PythonConsole/PythonConsole_PyEditor.cxx

index 4bc6b899f108dd3f8eddc483ad025d794fc00f87..9ffed0f034d41af5ab70c37bee770b3190ad7f5a 100755 (executable)
@@ -716,5 +716,11 @@ QPopupMenu* PythonConsole_PyEditor::createPopupMenu( const QPoint& pos )
 
   SUIT_Tools::simplifySeparators( popup );
 
+  if ( !popup->count() )
+  {
+    delete popup;
+    popup = 0;
+  }
+
   return popup;
 }