src/WindowFocus.cpp in capybara-webkit-0.13.2 vs src/WindowFocus.cpp in capybara-webkit-0.14.0
- old
+ new
@@ -10,15 +10,15 @@
void WindowFocus::start() {
focusWindow(arguments()[0]);
}
void WindowFocus::windowNotFound() {
- emit finished(new Response(false, QString("Unable to locate window. ")));
+ emitFinished(false, QString("Unable to locate window. "));
}
void WindowFocus::success(WebPage *page) {
page->setFocus();
- emit finished(new Response(true));
+ emitFinished(true);
}
void WindowFocus::focusWindow(QString selector) {
foreach(WebPage *page, manager()->pages()) {
if (page->matchesWindowSelector(selector)) {