From f53ddf931694aaf811462d4bcff9ac302999effa Mon Sep 17 00:00:00 2001 From: nowrep Date: Fri, 9 Mar 2012 22:25:05 +0100 Subject: [PATCH] Fixed infinite loop when starting another instance. --- src/main/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/main.cpp b/src/main/main.cpp index 3e0adaeb9..a3fa1dfd0 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -61,7 +61,6 @@ int main(int argc, char* argv[]) } MainApplication app(cmdActions, argc, argv); - app.setStyle(new ProxyStyle()); if (app.isExited()) { // Not showing any output, otherwise XFCE shows "Failed to execute default browser. I/O error" error @@ -71,6 +70,8 @@ int main(int argc, char* argv[]) return 0; } + app.setStyle(new ProxyStyle()); + int result = app.exec(); return result; }