Display prompt (still un-retina-fied) when reloading w/ unsaved buffers

This commit is contained in:
Nathan Sobo
2012-08-28 15:32:26 -05:00
parent 16c7c523cf
commit 12a6aca77c

View File

@@ -42,9 +42,9 @@ void AtomCefRenderProcessHandler::Reload(CefRefPtr<CefBrowser> browser) {
CefV8ValueList arguments;
CefRefPtr<CefV8Value> reloadFunction = global->GetValue("reload");
// reloadFunction->ExecuteFunction(global, arguments);
// if (reloadFunction->HasException()) {
reloadFunction->ExecuteFunction(global, arguments);
if (reloadFunction->HasException()) {
browser->ReloadIgnoreCache();
// }
}
context->Exit();
}