summaryrefslogtreecommitdiff
path: root/irc/kvirc/files/patch-debian_git-5d45ef
blob: 1d1413904a9fae2967dc68816da9bb7f79ae502d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Fixes FTBFS with gcc 6.
 Fixes invalid conversion errors. Also fixes two wrong flag operations, already
 fixed upstream (in 0d14434b and 934fa2e1).
Author: Andrey Rahmatullin <wrar@debian.org>
Bug-Debian: https://bugs.debian.org/811908
Last-Update: 2016-11-04

diff --git a/src/kvirc/kernel/KviIrcConnection.cpp b/src/kvirc/kernel/KviIrcConnection.cpp
index f925ca7..1266b46 100644
--- src/kvirc/kernel/KviIrcConnection.cpp
+++ src/kvirc/kernel/KviIrcConnection.cpp
@@ -669,7 +669,8 @@ void KviIrcConnection::closeAllChannels()
 	while(m_pChannelList->first())
 	{
 		m_pChannelList->first()->close();
-		QApplication::processEvents(QEventLoop::ExcludeSocketNotifiers & QEventLoop::ExcludeUserInputEvents);
+		QEventLoop::ProcessEventsFlags f(QEventLoop::ExcludeSocketNotifiers | QEventLoop::ExcludeUserInputEvents);
+		QApplication::processEvents(f);
 	}
 }
 
@@ -678,7 +679,8 @@ void KviIrcConnection::closeAllQueries()
 	while(m_pQueryList->first())
 	{
 		m_pQueryList->first()->close();
-		QApplication::processEvents(QEventLoop::ExcludeSocketNotifiers & QEventLoop::ExcludeUserInputEvents);
+		QEventLoop::ProcessEventsFlags f(QEventLoop::ExcludeSocketNotifiers | QEventLoop::ExcludeUserInputEvents);
+		QApplication::processEvents(f);
 	}
 }