From 2cd88dd9e1a4e87d68b79493b06593d9f2fbd47c Mon Sep 17 00:00:00 2001 From: stv Date: Fri, 17 Jun 2005 08:41:00 +0000 Subject: [PATCH] IPAL9137 --- src/PythonConsole/PythonConsole_PyEditor.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.39.2