diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-07-09 10:48:46 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-07-09 10:48:46 +0000 |
commit | ba0b7d98cdb39b0242b1ded3bff96f368712c8bf (patch) | |
tree | 0c17c96b26073e6fc3df0c1b7326c9e1e3bf0026 /dbaccess/source/ui/querydesign/TableWindowListBox.cxx | |
parent | #89383# ask for directory not displaydir (diff) | |
download | core-ba0b7d98cdb39b0242b1ded3bff96f368712c8bf.tar.gz core-ba0b7d98cdb39b0242b1ded3bff96f368712c8bf.zip |
#88878# only d&d when there exists a connection
Diffstat (limited to 'dbaccess/source/ui/querydesign/TableWindowListBox.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/TableWindowListBox.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/dbaccess/source/ui/querydesign/TableWindowListBox.cxx b/dbaccess/source/ui/querydesign/TableWindowListBox.cxx index 499b75c4b146..025f783a2444 100644 --- a/dbaccess/source/ui/querydesign/TableWindowListBox.cxx +++ b/dbaccess/source/ui/querydesign/TableWindowListBox.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TableWindowListBox.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: oj $ $Date: 2001-07-09 06:56:48 $ + * last change: $Author: oj $ $Date: 2001-07-09 11:48:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -107,10 +107,6 @@ DBG_NAME(OTableWindowListBox); //------------------------------------------------------------------------------ OTableWindowListBox::OTableWindowListBox( OTableWindow* pParent, const String& rDatabaseName, const String& rTableName ) : SvTreeListBox( pParent, WB_HASBUTTONS | WB_BORDER) -#if SUPD<627 - ,DragSourceHelper(this) - ,DropTargetHelper(this) -#endif ,m_pTabWin( pParent ) ,m_aMousePos( Point(0,0) ) ,m_bReallyScrolled( sal_False ) @@ -256,7 +252,7 @@ IMPL_LINK( OTableWindowListBox, ScrollDownHdl, SvTreeListBox*, pBox ) void OTableWindowListBox::StartDrag( sal_Int8 nAction, const Point& rPosPixel ) { OQueryTableView* pCont = static_cast<OQueryTableView*>(m_pTabWin->getTableView()); - if (!pCont->getDesignView()->getController()->isReadOnly()) + if (!pCont->getDesignView()->getController()->isReadOnly() && pCont->getDesignView()->getController()->getConnection().is()) { EndSelection(); |