diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-14 14:19:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-14 14:19:20 +0100 |
commit | 3c9b1306384cc88d7afbfe3127ea40ba056a4822 (patch) | |
tree | c0a5a820c08c64807493967eeca0669f2901e561 /vcl/source/window | |
parent | d18421575c7f1eb97d08cde6184c082e5ab828c3 (diff) |
ToolBox::mbCommandDrag is always false now
...after 5ac443e180c54dee69a65a1569c99afe151f2f97 "ToolBox::mbCustomizeMode is
always false"
Change-Id: I39bd9d07dfd8dee8e935aa612db35e11022f4ed3
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 4 | ||||
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 3d619b7ea343..02f8ee4e2519 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1325,7 +1325,6 @@ void ToolBox::ImplInitToolBoxData() mnMouseModifier = 0; mbDrag = false; mbSelection = false; - mbCommandDrag = false; mbUpper = false; mbLower = false; mbIn = false; @@ -3902,13 +3901,12 @@ void ToolBox::MouseButtonUp( const MouseEvent& rMEvt ) if ( ImplHandleMouseButtonUp( rMEvt ) ) return; - if ( mbDragging && (rMEvt.IsLeft() || mbCommandDrag) ) + if ( mbDragging && rMEvt.IsLeft() ) { ImplTBDragMgr* pMgr = ImplGetTBDragMgr(); pMgr->EndDragging(); return; } - mbCommandDrag = false; DockingWindow::MouseButtonUp( rMEvt ); } diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index c3245b71b338..b2d708dfbb32 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -1134,8 +1134,6 @@ void ToolBox::StartSelection() void ToolBox::EndSelection() { - mbCommandDrag = false; - if ( mbDrag || mbSelection ) { // reset |