Permalink
Browse files

src: don't insert a slash when contructing the save URL

The server always contains a slash now. Fixes the overwrite check.
  • Loading branch information...
1 parent b902f2b commit 991668bf960e1438861d52a2659be4f685df8abf Michael Natterer committed Jul 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/filedialog.cxx
View
@@ -491,12 +491,12 @@ void FileDialog::openOrSaveSelectedDocument (void)
Any aValue = entryProps->getPropertyValue (OUString::createFromAscii ("Text"));
OUString sURL;
aValue >>= sURL;
- sURL = mSettings->getRemoteServerName () + OUString::createFromAscii ("/") + sURL;
+ sURL = mSettings->getRemoteServerName () + sURL;
printf ("Saving document: %s\n",
OUStringToOString (sURL, RTL_TEXTENCODING_UTF8).getStr ());
- if (sURL.equals (mSettings->getRemoteServerName () + OUString::createFromAscii ("/")))
+ if (sURL.equals (mSettings->getRemoteServerName ()))
{
showMessageBox (mSettings->localizedString (LocalizedStrings::emptyFilename), false);
return;

0 comments on commit 991668b

Please sign in to comment.