diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-09 01:51:54 +0100 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-09 14:41:11 -0500 |
commit | a1091d0dbddaf59d8e5dba74e7c7a2bbd9778e06 (patch) | |
tree | dfd090abae647b5c82c0a698e1070acb989880f6 /sc | |
parent | 22289e0ac4782af17f80b442b65ffe5710c9479e (diff) |
don't show the anonymous db string, it is for internal use only
Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/foptmgr.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/foptmgr.cxx b/sc/source/ui/dbgui/foptmgr.cxx index eec3c8833b3b..61bd2ce2c567 100644 --- a/sc/source/ui/dbgui/foptmgr.cxx +++ b/sc/source/ui/dbgui/foptmgr.cxx @@ -196,9 +196,17 @@ void ScFilterOptionsMgr::Init() } } - theDbArea.appendAscii(RTL_CONSTASCII_STRINGPARAM(" (")); - theDbArea.append(theDbName).append(')'); - rFtDbArea.SetText( theDbArea.makeStringAndClear() ); + if ( !theDbName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(STR_DB_LOCAL_NONAME)) ) + { + theDbArea.appendAscii(RTL_CONSTASCII_STRINGPARAM(" (")); + theDbArea.append(theDbName).append(')'); + rFtDbArea.SetText( theDbArea.makeStringAndClear() ); + } + else + { + rFtDbAreaLabel.SetText( rtl::OUString() ); + rFtDbArea.SetText( rtl::OUString() ); + } //------------------------------------------------------ // Kopierposition: |