summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-03-15 11:43:58 +0000
committerOliver Bolte <obo@openoffice.org>2004-03-15 11:43:58 +0000
commit84561bb5eda91877d5329d3ff4938e9d09de0bd8 (patch)
tree6091e7472df06ffbea619ae5f668ca39b25fef20 /dbaccess/source/ui
parentd61400d20ed58afb239e14eea8cce189be6fedc3 (diff)
INTEGRATION: CWS oj08 (1.55.8); FILE MERGED
2004/01/29 13:27:26 oj 1.55.8.1: #i21660# don't show error msg when dragging
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx25
1 files changed, 17 insertions, 8 deletions
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 69c3e6a5ff67..6d7add825c08 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SelectionBrowseBox.cxx,v $
*
- * $Revision: 1.55 $
+ * $Revision: 1.56 $
*
- * last change: $Author: vg $ $Date: 2004-01-06 16:47:50 $
+ * last change: $Author: obo $ $Date: 2004-03-15 12:43:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -204,6 +204,7 @@ OSelectionBrowseBox::OSelectionBrowseBox( Window* pParent )
,m_bGroupByUnRelated(sal_True)
,m_bStopTimer(sal_False)
,m_bWasEditing(sal_False)
+ ,m_bDisableErrorBox(sal_False)
{
DBG_CTOR(OSelectionBrowseBox,NULL);
SetHelpId(HID_CTL_QRYDGNCRIT);
@@ -1198,17 +1199,23 @@ sal_Bool OSelectionBrowseBox::SaveModified()
}
else
{
- String sTitle(ModuleRes(STR_STAT_WARNING));
- OSQLMessageBox aDlg(this,sTitle,aErrorMsg,WB_OK | WB_DEF_OK,OSQLMessageBox::Warning);
- aDlg.Execute();
+ if ( !m_bDisableErrorBox )
+ {
+ String sTitle(ModuleRes(STR_STAT_WARNING));
+ OSQLMessageBox aDlg(this,sTitle,aErrorMsg,WB_OK | WB_DEF_OK,OSQLMessageBox::Warning);
+ aDlg.Execute();
+ }
bError = sal_True;
}
}
else
{
- String sTitle(ModuleRes(STR_STAT_WARNING));
- OSQLMessageBox aDlg(this,sTitle,aErrorMsg,WB_OK | WB_DEF_OK,OSQLMessageBox::Warning);
- aDlg.Execute();
+ if ( !m_bDisableErrorBox )
+ {
+ String sTitle(ModuleRes(STR_STAT_WARNING));
+ OSQLMessageBox aDlg(this,sTitle,aErrorMsg,WB_OK | WB_DEF_OK,OSQLMessageBox::Warning);
+ aDlg.Execute();
+ }
bError = sal_True;
}
}
@@ -1446,7 +1453,9 @@ sal_Int8 OSelectionBrowseBox::AcceptDrop( const BrowserAcceptDropEvent& rEvt )
if ( IsEditing() )
{
// #100271# OJ allow the asterix again
+ m_bDisableErrorBox = sal_True;
SaveModified();
+ m_bDisableErrorBox = sal_False;
DeactivateCell();
}
// check if the format is already supported, if not deactivate the current cell and try again