Permalink
Browse files

added / to windowContent if necessary

  • Loading branch information...
1 parent b4235c1 commit 9f6ad2d28fb1b0ad617dcd4f0fa90f9db4f115bc Shiwei Tu committed Dec 13, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 Ripple/ripple.cpp
View
@@ -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);

0 comments on commit 9f6ad2d

Please sign in to comment.