diff options
author | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | 2016-08-28 16:07:24 +0200 |
---|---|---|
committer | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | 2016-08-29 18:43:05 +0000 |
commit | 4e8e637374f8dad5439da39bd0c4b8b0b7c13cde (patch) | |
tree | cac5e86e59f5038bde7f77b0632bb41279644303 /fpicker | |
parent | 7dcbcfcf21cb05a606ab8954abf7c3fddda2c4fe (diff) |
tdf#101766: Fix new folder creation in 'Save Remote Server' dialog.
Change-Id: I5297918ff6acf0631b8be370de3ac96bed474a47
Reviewed-on: https://gerrit.libreoffice.org/28458
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index 69ededf352fe..59f77918f6b0 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -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 ) ); |