platform/iphone/Classes/WebViewController.m in rhodes-1.5.0 vs platform/iphone/Classes/WebViewController.m in rhodes-1.5.1
- old
+ new
@@ -33,10 +33,12 @@
//LOCK(current_location);
return currentLocation;
//UNLOCK(current_location);
}*/
+extern int webview_active_tab();
+
@interface UIBarButtonItemAction : NSObject
{
WebViewController *wc;
NSString *url;
}
@@ -377,12 +379,12 @@
// [self navigateRedirect:viewOptionsUrl];
//}
}
-(void)refresh {
- [webView reload];
- //const char* url = rho_rhodesapp_getcurrenturl();
- //[self navigateRedirect:[NSString stringWithCString:url encoding:[NSString defaultCStringEncoding]]];
+ //[webView reload];
+ const char *appUrl = rho_rhodesapp_getcurrenturl(webview_active_tab());
+ [self navigate:[NSString stringWithUTF8String:appUrl]];
}
-(void)onRefresh:(id)sender {
[self refresh];
}