From 13b964d0f5df6f79dbfce8439a6e572762b324fe Mon Sep 17 00:00:00 2001 From: electron128 Date: Tue, 17 Mar 2015 16:21:23 +0000 Subject: [PATCH] fixed compile with Qt 5 (modified patch from Phenom) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8040 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/Posted/PostedItem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/Posted/PostedItem.cpp b/retroshare-gui/src/gui/Posted/PostedItem.cpp index c22881663..5949fd2a2 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.cpp +++ b/retroshare-gui/src/gui/Posted/PostedItem.cpp @@ -194,9 +194,8 @@ void PostedItem::fill() // Use QUrl to check/parse our URL // The only combination that seems to work: load as EncodedUrl, extract toEncoded(). - QUrl url; QByteArray urlarray(mPost.mLink.c_str()); - url.setEncodedUrl(urlarray.trimmed()); + QUrl url = QUrl::fromEncoded(urlarray.trimmed()); QString urlstr = "Invalid Link"; QString sitestr = "Invalid Link"; bool urlOkay = url.isValid();