From 60486ab63efd9abceaf2f2cf30023d483b4c462f Mon Sep 17 00:00:00 2001
From: Thanos Doukoudakis <thanos.doukoudakis@isode.com>
Date: Wed, 16 Aug 2017 11:10:18 +0100
Subject: Fix inverted logging assert condition

This patch will fix a bug where SWIFT_LOG_ASSERT was logging the wrong
information.

Test-Information:

Tested the logging assertion on Windows 10 (Qt 5.7) during the client
exit.

Change-Id: I7bffbe52a0b28c7577b1bad165313ea64a3f8e46

diff --git a/Swift/QtUI/QtUIFactory.cpp b/Swift/QtUI/QtUIFactory.cpp
index d3b30de..583c477 100644
--- a/Swift/QtUI/QtUIFactory.cpp
+++ b/Swift/QtUI/QtUIFactory.cpp
@@ -50,7 +50,7 @@ QtUIFactory::QtUIFactory(SettingsProviderHierachy* settings, QtSettingsProvider*
 QtUIFactory::~QtUIFactory() {
     SWIFT_LOG(debug) << "Entering QtUIFactory destructor. chatWindows size:" << chatWindows.size() << std::endl;
     for (auto chat : chatWindows) {
-        SWIFT_LOG_ASSERT(!chat.isNull(), debug) << "QtUIFactory has active chat windows and has not been reset properly" << std::endl;
+        SWIFT_LOG_ASSERT(chat.isNull(), debug) << "QtUIFactory has active chat windows and has not been reset properly" << std::endl;
     }
 }
 
-- 
cgit v0.10.2-6-g49f6