From 3648efed364994a96e0d9dfe1c1c2e557fa507c5 Mon Sep 17 00:00:00 2001 From: adelcastillo Date: Sun, 21 Mar 2010 12:58:42 +0000 Subject: [PATCH] Volviendo version anterior por un error. git-svn-id: https://opengnsys.es/svn/trunk@829 a21b9725-9963-47de-94b9-378ad31fedc9 --- src/main.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8312af2..0ae6ac6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,11 +1,16 @@ #include -#include "core.h" #include -#include +#include "mainwindow.h" int main(int argc, char *argv[]) { - QApplication a(argc, argv); - Core* core=new Core(); - return a.exec(); + if(argc<=1) + { + printf("Usage: %s http://siteweb.com/\n",argv[0]); + return -1; + } + QApplication a(argc, argv); + MainWindow w; + w.show(); + return a.exec(); }