cmake: Autogenerate most of the .qrc resource files
[quassel.git] / src / client / transfermodel.cpp
index fdacd18..85bd8e3 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  *
@@ -116,6 +116,9 @@ void TransferModel::setManager(const TransferManager *manager)
     if (_manager) {
         connect(manager, SIGNAL(transferAdded(QUuid)), SLOT(onTransferAdded(QUuid)));
         connect(manager, SIGNAL(transferRemoved(QUuid)), SLOT(onTransferRemoved(QUuid)));
+        for (auto &&transferId : _manager->transferIds()) {
+            onTransferAdded(transferId);
+        }
     }
 }