X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Ftransfermodel.cpp;h=affd487152d51f49b55bd88d52af8f051572a0b6;hb=98144aaad0cd747f186edcd0e36a1d67326ac766;hp=e0448b2e09e46f1ed2b27849dd206a22677f9674;hpb=92b14080db9838311ba45bddc7306d8366970820;p=quassel.git diff --git a/src/client/transfermodel.cpp b/src/client/transfermodel.cpp index e0448b2e..affd4871 100644 --- a/src/client/transfermodel.cpp +++ b/src/client/transfermodel.cpp @@ -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 * @@ -106,7 +106,7 @@ QVariant TransferModel::data(const QModelIndex& index, int role) const void TransferModel::setManager(const TransferManager *manager) { if (_manager) { - disconnect(_manager, 0, this, 0); + disconnect(_manager, nullptr, this, nullptr); beginResetModel(); _transferIds.clear(); endResetModel(); @@ -152,7 +152,7 @@ void TransferModel::onTransferRemoved(const QUuid &transferId) // Check if the transfer object still exists, which means we still should disconnect auto transfer = _manager->transfer(transferId); if (transfer) - disconnect(transfer, 0, this, 0); + disconnect(transfer, nullptr, this, nullptr); for (auto row = 0; row < _transferIds.size(); ++row) { if (_transferIds[row] == transferId) {