Adding missing #include
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 3 May 2008 21:13:00 +0000 (21:13 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 3 May 2008 21:13:00 +0000 (21:13 +0000)
src/uisupport/bufferviewfilter.cpp

index c34d023..ec6a56e 100644 (file)
@@ -18,6 +18,8 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
+#include <QCoreApplication>
+
 #include "bufferviewfilter.h"
 
 #include "buffermodel.h"
 #include "bufferviewfilter.h"
 
 #include "buffermodel.h"
@@ -280,7 +282,7 @@ void BufferViewFilter::source_rowsInserted(const QModelIndex &parent, int start,
 void BufferViewFilter::checkPreviousCurrentForRemoval(const QModelIndex &current, const QModelIndex &previous) {
   Q_UNUSED(current);
   if(previous.isValid())
 void BufferViewFilter::checkPreviousCurrentForRemoval(const QModelIndex &current, const QModelIndex &previous) {
   Q_UNUSED(current);
   if(previous.isValid())
-    qApp->postEvent(this, new CheckRemovalEvent(previous));
+    QCoreApplication::instance()->postEvent(this, new CheckRemovalEvent(previous));
 }
 
 void BufferViewFilter::customEvent(QEvent *event) {
 }
 
 void BufferViewFilter::customEvent(QEvent *event) {