From: stv Date: Fri, 17 Jun 2005 08:41:00 +0000 (+0000) Subject: IPAL9137 X-Git-Tag: T3_0_0_a4~91 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2cd88dd9e1a4e87d68b79493b06593d9f2fbd47c;p=modules%2Fgui.git IPAL9137 --- diff --git a/src/PythonConsole/PythonConsole_PyEditor.cxx b/src/PythonConsole/PythonConsole_PyEditor.cxx index 4bc6b899f..9ffed0f03 100755 --- a/src/PythonConsole/PythonConsole_PyEditor.cxx +++ b/src/PythonConsole/PythonConsole_PyEditor.cxx @@ -716,5 +716,11 @@ QPopupMenu* PythonConsole_PyEditor::createPopupMenu( const QPoint& pos ) SUIT_Tools::simplifySeparators( popup ); + if ( !popup->count() ) + { + delete popup; + popup = 0; + } + return popup; }