aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qt/driver.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt/driver.cxx b/qt/driver.cxx
index 8240fd3..726b9c9 100644
--- a/qt/driver.cxx
+++ b/qt/driver.cxx
@@ -4,6 +4,8 @@
#include <iostream>
+#include <QtCore/QCoreApplication>
+
#include <odb/database.hxx>
#include <odb/session.hxx>
#include <odb/transaction.hxx>
@@ -25,6 +27,8 @@ operator<< (ostream& os, const QString& s)
int
main (int argc, char* argv[])
{
+ QCoreApplication app (argc, argv);
+
try
{
auto_ptr<database> db (createDatabase (argc, argv));