Fix problem with https sites in QuickAccess 50/93950/1
authorDariusz Frankiewicz <d.frankiewic@samsung.com>
Wed, 26 Oct 2016 09:13:16 +0000 (11:13 +0200)
committerDariusz Frankiewicz <d.frankiewic@samsung.com>
Wed, 26 Oct 2016 09:13:16 +0000 (11:13 +0200)
[Issue]    http://suprem.sec.samsung.net/jira/browse/TWF-2373
[Problem]  Https sites added to QuickAccess have bad url.
[Cause]    Bad string compare.
[Solution] Fix string compare.
[Verify]   Add some https pages to QuickAccess and next try to load them.

Change-Id: I524e562651f890d5deb3a57d2d3164d639f214ac

services/SimpleUI/SimpleUI.cpp

index 0907f20f255f0871d40741261e9b7cc4654f4c03..08e460a9ddeeb9576ce28240529c1cfbd5703dac 100755 (executable)
@@ -1045,7 +1045,7 @@ void SimpleUI::addQuickAccessItem(const string &urlArg, const string &titleArg)
     std::string url = urlArg;
     std::string title = titleArg;
 
-    if (url.compare(0, tools::PROTOCOL_HTTP.length(), tools::PROTOCOL_HTTP))
+    if (!url.compare(0, tools::PROTOCOL_HTTP.length(), tools::PROTOCOL_HTTP))
         url = std::string(tools::PROTOCOL_HTTP) + url;
 
     if (titleArg.empty()) {