diff options
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/acccfg.cxx | 3 | ||||
-rw-r--r-- | cui/source/customize/acccfg.src | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index 069682ed8d25..4ee5159fac88 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -1367,7 +1367,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, EMPTYARG void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTitle ) { bool bSave = ( ( nBits & WB_SAVEAS ) == WB_SAVEAS ); - short nDialogType = bSave ? css::ui::dialogs::TemplateDescription::FILESAVE_SIMPLE + short nDialogType = bSave ? css::ui::dialogs::TemplateDescription::FILESAVE_AUTOEXTENSION : css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE; if ( m_pFileDlg ) delete m_pFileDlg; @@ -1376,6 +1376,7 @@ void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTi m_pFileDlg->SetTitle( rTitle ); m_pFileDlg->AddFilter( aFilterAllStr, DEFINE_CONST_UNICODE( FILEDIALOG_FILTER_ALL ) ); m_pFileDlg->AddFilter( aFilterCfgStr, DEFINE_CONST_UNICODE( "*.cfg" ) ); + m_pFileDlg->SetCurrentFilter( aFilterCfgStr ); Link aDlgClosedLink = bSave ? LINK( this, SfxAcceleratorConfigPage, SaveHdl ) : LINK( this, SfxAcceleratorConfigPage, LoadHdl ); diff --git a/cui/source/customize/acccfg.src b/cui/source/customize/acccfg.src index c486f9eb9a4d..6815fee988d4 100644 --- a/cui/source/customize/acccfg.src +++ b/cui/source/customize/acccfg.src @@ -197,7 +197,7 @@ TabPage RID_SVXPAGE_KEYBOARD }; String STR_FILTERNAME_CFG { - Text [ en-US ] = "Configuration" ; + Text [ en-US ] = "Configuration (*.cfg)" ; }; }; |