summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-14 14:19:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-14 14:19:20 +0100
commit3c9b1306384cc88d7afbfe3127ea40ba056a4822 (patch)
treec0a5a820c08c64807493967eeca0669f2901e561
parentd18421575c7f1eb97d08cde6184c082e5ab828c3 (diff)
ToolBox::mbCommandDrag is always false now
...after 5ac443e180c54dee69a65a1569c99afe151f2f97 "ToolBox::mbCustomizeMode is always false" Change-Id: I39bd9d07dfd8dee8e935aa612db35e11022f4ed3
-rw-r--r--include/vcl/toolbox.hxx1
-rw-r--r--vcl/source/window/toolbox.cxx4
-rw-r--r--vcl/source/window/toolbox2.cxx2
3 files changed, 1 insertions, 6 deletions
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 3c4066e7cb66..17c31cbda733 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -137,7 +137,6 @@ private:
sal_uInt16 mnMouseModifier;
bool mbDrag:1,
mbSelection:1,
- mbCommandDrag:1,
mbUpper:1,
mbLower:1,
mbIn:1,
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