summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-03-21 06:00:01 +0000
committerOcke Janssen <oj@openoffice.org>2002-03-21 06:00:01 +0000
commit769ab3b0299cf2878ad89df37965920cf29dc920 (patch)
tree5d479893de4f965251a62ed1ab0e38c14da7c635 /dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
parentd0f80aff7210b967458ef10f483aa8e335b46a49 (diff)
#98031# hide add tabledialog when switch to textview
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryViewSwitch.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/QueryViewSwitch.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
index 60a330beca7d..802c8fb6529d 100644
--- a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
+++ b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: QueryViewSwitch.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: oj $ $Date: 2002-02-11 12:56:28 $
+ * last change: $Author: oj $ $Date: 2002-03-21 07:00:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -260,6 +260,8 @@ void OQueryViewSwitch::switchView()
{
sal_Bool bGraphicalDesign = static_cast<OQueryController*>(m_pDesignView->getController())->isDesignMode();
+ if ( !bGraphicalDesign ) // we have to hide the add table dialog
+ m_pDesignView->getAddTableDialog()->Hide();
m_pTextView->Show ( !bGraphicalDesign );
m_pDesignView->Show ( bGraphicalDesign );