summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/menu.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 29fd6b9e4580..c29ffda0b521 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -3138,9 +3138,7 @@ sal_uInt16 PopupMenu::ImplExecute( const VclPtr<vcl::Window>& pW, const Rectangl
if( ! pW->IsDisposed() )
pW->ImplDecModalCount();
- if ( !pWin->IsDisposed() )
- return 0;
- else
+ if ( pWin->IsDisposed() )
return 0;
// Restore focus (could already have been