All pastes #2046381 Raw Edit

Something

public text v1 · immutable
#2046381 ·published 2011-04-14 13:11 UTC
rendered paste body
From b522b2db50e0eb6ce88da110bb6776fea5feedf2 Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <daniel.molkentin@nokia.com>
Date: Thu, 14 Apr 2011 15:10:13 +0200
Subject: [PATCH] Fix setting the raster engine

---
 src/app/main.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/app/main.cpp b/src/app/main.cpp
index 48120cd..23a8f75 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -194,15 +194,15 @@ int main(int argc, char **argv)
     setrlimit(RLIMIT_NOFILE, &rl);
 #endif
 
+#ifndef Q_OS_MAC
+    QApplication::setGraphicsSystem("raster");
+#endif
+
     SharedTools::QtSingleApplication app((QLatin1String(appNameC)), argc, argv);
 
     const int threadCount = QThreadPool::globalInstance()->maxThreadCount();
     QThreadPool::globalInstance()->setMaxThreadCount(qMax(4, 2 * threadCount));
 
-#ifndef Q_OS_MAC
-    app.setGraphicsSystem("raster");
-#endif
-
 #ifdef ENABLE_QT_BREAKPAD
     QtSystemExceptionHandler systemExceptionHandler;
 #endif
-- 
1.7.1