diff options
Diffstat (limited to 'fbbrowser/main.cpp')
| -rw-r--r-- | fbbrowser/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fbbrowser/main.cpp b/fbbrowser/main.cpp index a95626b..e0210f5 100644 --- a/fbbrowser/main.cpp +++ b/fbbrowser/main.cpp @@ -6,7 +6,7 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); - a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); + QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); QUrl url; if (argc > 1) @@ -14,7 +14,8 @@ int main(int argc, char *argv[]) else //Default url = QUrl("http://132.230.4.3/webkitTest.html"); - fbbrowser *w = new fbbrowser(url); - w->show(); + fbbrowser *fbb = new fbbrowser(url); + QObject::connect(fbb, SIGNAL(signalQuitAll()), &a, SLOT(quit())); + fbb->show(); return a.exec(); } |
