Kaydet (Commit) 4e8e6373 authored tarafından Giuseppe Castagno's avatar Giuseppe Castagno

tdf#101766: Fix new folder creation in 'Save Remote Server' dialog.

Change-Id: I5297918ff6acf0631b8be370de3ac96bed474a47
Reviewed-on: https://gerrit.libreoffice.org/28458Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>
üst 7dcbcfcf
......@@ -1073,7 +1073,14 @@ IMPL_LINK_NOARG_TYPED ( RemoteFilesDialog, NewFolderHdl, Button*, void )
{
m_pFileView->EndInplaceEditing();
SmartContent aContent( m_pFileView->GetViewURL() );
// will be bound after InteractionHandler is enabled
SmartContent aContent;
aContent.enableDefaultInteractionHandler();
// now it can be bound
aContent.bindTo( m_pFileView->GetViewURL() );
if( !aContent.canCreateFolder() )
return;
OUString aTitle;
aContent.getTitle( aTitle );
ScopedVclPtrInstance< QueryFolderNameDialog > aDlg( this, aTitle, fpicker::SVT_RESSTR( STR_SVT_NEW_FOLDER ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment