mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed compile on Windows.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4618 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
21feaf46da
commit
bb9f362458
@ -358,10 +358,7 @@ static void sendMail (QString sAddress, QString sSubject, QString sBody)
|
|||||||
{
|
{
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
/* search and replace the end of lines with: "%0D%0A" */
|
/* search and replace the end of lines with: "%0D%0A" */
|
||||||
size_t loc;
|
sBody.replace("\n", "%0D%0A");
|
||||||
while ((loc = sBody.find("\n")) != sBody.npos) {
|
|
||||||
sBody.replace(loc, 1, "%0D%0A");
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QUrl url = QUrl("mailto:" + sAddress);
|
QUrl url = QUrl("mailto:" + sAddress);
|
||||||
|
Loading…
Reference in New Issue
Block a user