From a3b361dc34c58645f564a93c63fd211f6e761947 Mon Sep 17 00:00:00 2001
From: Andras Becsi <andras.becsi@digia.com>
Date: Fri, 6 Feb 2015 12:02:58 +0100
Subject: [PATCH] Fix multi-tab browser quit action on OS X
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix typo '=+' -> '+=', that prevented us from
properly counting the open tabs on OS X.

Change-Id: If6bbe8cbcf83d7ee8a4e11361a2199b51430700b
Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
---
 examples/webenginewidgets/browser/browserapplication.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/webenginewidgets/browser/browserapplication.cpp b/examples/webenginewidgets/browser/browserapplication.cpp
index ddcebfb8e..093ab7228 100644
--- a/examples/webenginewidgets/browser/browserapplication.cpp
+++ b/examples/webenginewidgets/browser/browserapplication.cpp
@@ -180,7 +180,7 @@ void BrowserApplication::quitBrowser()
     clean();
     int tabCount = 0;
     for (int i = 0; i < m_mainWindows.count(); ++i) {
-        tabCount =+ m_mainWindows.at(i)->tabWidget()->count();
+        tabCount += m_mainWindows.at(i)->tabWidget()->count();
     }
 
     if (tabCount > 1) {
-- 
GitLab