diff options
Diffstat (limited to 'Swiften/EventLoop/Qt/QtEventLoop.h')
| -rw-r--r-- | Swiften/EventLoop/Qt/QtEventLoop.h | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/EventLoop/Qt/QtEventLoop.h b/Swiften/EventLoop/Qt/QtEventLoop.h index 258a920..b42b916 100644 --- a/Swiften/EventLoop/Qt/QtEventLoop.h +++ b/Swiften/EventLoop/Qt/QtEventLoop.h @@ -15,6 +15,9 @@  class QtEventLoop : public QObject, public Swift::EventLoop {  	public:  		QtEventLoop() {} +		~QtEventLoop() { +			QCoreApplication::removePostedEvents(this); +		}  		virtual void post(const Swift::Event& event) {  			QCoreApplication::postEvent(this, new Event(event));  | 
 Swift