/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
Action* act = new Action(net->networkName(), this);
_networkActions[id] = act;
act->setObjectName(QString("NetworkAction-%1").arg(id.toInt()));
- act->setData(QVariant::fromValue<NetworkId>(id));
+ act->setData(QVariant::fromValue(id));
connect(net, &Network::updatedRemotely, this, [this]() { networkUpdated(); });
connect(act, &QAction::triggered, this, &ToolBarActionProvider::connectOrDisconnectNet);
networkUpdated(net);