src/main.cpp in capybara-webkit-1.1.1 vs src/main.cpp in capybara-webkit-1.2.0
- old
+ new
@@ -1,7 +1,8 @@
#include "Server.h"
#include "IgnoreDebugOutput.h"
+#include "StdinNotifier.h"
#include <QApplication>
#include <iostream>
#ifdef Q_OS_UNIX
#include <unistd.h>
#endif
@@ -16,9 +17,12 @@
QApplication app(argc, argv);
app.setApplicationName("capybara-webkit");
app.setOrganizationName("thoughtbot, inc");
app.setOrganizationDomain("thoughtbot.com");
+
+ StdinNotifier notifier;
+ QObject::connect(¬ifier, SIGNAL(eof()), &app, SLOT(quit()));
ignoreDebugOutput();
Server server(0);
if (server.start()) {