Kaydet (Commit) c09512c3 authored tarafından Szymon Kłos's avatar Szymon Kłos

question about overwriting the file only in the save mode

Change-Id: Iabb3bc12a8efae65a1c3d221a31c2214de8f6c90
üst 84e8159a
...@@ -776,6 +776,8 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl ) ...@@ -776,6 +776,8 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
} }
if ( bExists ) if ( bExists )
{
if( m_eMode == REMOTEDLG_MODE_SAVE )
{ {
OUString sMsg = ResId( STR_SVT_ALREADYEXISTOVERWRITE, *ResMgrHolder::getOrCreate() ); OUString sMsg = ResId( STR_SVT_ALREADYEXISTOVERWRITE, *ResMgrHolder::getOrCreate() );
sMsg = sMsg.replaceFirst( "$filename$", sName ); sMsg = sMsg.replaceFirst( "$filename$", sName );
...@@ -783,6 +785,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl ) ...@@ -783,6 +785,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
if( aBox->Execute() != RET_YES ) if( aBox->Execute() != RET_YES )
return 0; return 0;
} }
}
else else
{ {
if( m_eMode == REMOTEDLG_MODE_OPEN ) if( m_eMode == REMOTEDLG_MODE_OPEN )
......
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