Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added / to windowContent if necessary

  • Loading branch information...
commit 9f6ad2d28fb1b0ad617dcd4f0fa90f9db4f115bc 1 parent b4235c1
Shiwei Tu authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 Ripple/ripple.cpp
View
7 Ripple/ripple.cpp
@@ -104,7 +104,12 @@ void Ripple::init(void)
move(_config->windowPosition());
- webViewInternal->qtStageWebView()->load(QUrl(_config->toolingContent()));
+ //workaround in case the toolingContent point to a folder without end '/', append one, so the offline mode still works
+ QUrl url(_config->toolingContent());
+ QString path = url.path();
+ if ( url.toLocalFile().isEmpty() && !path.endsWith('/'))
+ url.setPath(path + "/");
+ webViewInternal->qtStageWebView()->load(url);
setCentralWidget(webViewInternal);
Please sign in to comment.
Something went wrong with that request. Please try again.