Selaa lähdekoodia

Load correct URL on windows

We need more slashes on windows
Tobias Hieta 8 vuotta sitten
vanhempi
commit
f2a1fd3ea3
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6 1
      src/settings/SettingsComponent.cpp

+ 6 - 1
src/settings/SettingsComponent.cpp

@@ -680,7 +680,12 @@ QString SettingsComponent::getWebClientUrl()
   }
 
   if (url == "bundled")
-    return "file://" + Paths::webClientPath();
+  {
+    auto path = Paths::webClientPath();
+    if (path.startsWith("/"))
+      return "file://" + path;
+    return "file:///" + path;
+  }
 
   return url;
 }