modernize: Use '= default' instead of empty ctor/dtor bodies
[quassel.git] / src / uisupport / abstractbuffercontainer.cpp
index ca9c101..f6e8de7 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2016 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -30,11 +30,6 @@ AbstractBufferContainer::AbstractBufferContainer(QWidget *parent)
 }
 
 
-AbstractBufferContainer::~AbstractBufferContainer()
-{
-}
-
-
 void AbstractBufferContainer::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
 {
     Q_ASSERT(model());
@@ -126,9 +121,7 @@ void AbstractBufferContainer::setCurrentBuffer(BufferId bufferId)
 
     _currentBuffer = bufferId;
     showChatView(bufferId);
-    if (!Client::coreFeatures().testFlag(Quassel::Feature::BufferActivitySync)) {
-        Client::networkModel()->clearBufferActivity(bufferId);
-    }
+    Client::networkModel()->clearBufferActivity(bufferId);
     Client::setBufferLastSeenMsg(bufferId, _chatViews[bufferId]->lastMsgId());
     Client::backlogManager()->checkForBacklog(bufferId);
     setFocus();