- updateWidgets();
- lastIdentity = getCurIdentity();
- connect(ui.identityList, SIGNAL(activated(QString)), this, SLOT(identityChanged(QString)));
- connect(ui.editIdentitiesButton, SIGNAL(clicked()), this, SLOT(editIdentities()));
- connect(ui.nickList, SIGNAL(itemSelectionChanged()), this, SLOT(nickSelectionChanged()));
- connect(ui.addNickButton, SIGNAL(clicked()), this, SLOT(addNick()));
- connect(ui.editNickButton, SIGNAL(clicked()), this, SLOT(editNick()));
- connect(ui.delNickButton, SIGNAL(clicked()), this, SLOT(delNick()));
- connect(ui.upNickButton, SIGNAL(clicked()), this, SLOT(upNick()));
- connect(ui.downNickButton, SIGNAL(clicked()), this, SLOT(downNick()));
-}
-
-void IdentitiesDlg::globalDataUpdated(QString key) {
- if(key == "Identities") {
- if(QMessageBox::warning(this, tr("Data changed remotely!"), tr("<b>Some other GUI client changed the identities data!</b><br>"
- "Apply updated settings, losing all changes done locally?"),
- QMessageBox::Apply|QMessageBox::Discard) == QMessageBox::Apply) {
- identities = global->getData(key).toMap();
- updateWidgets();
+ QStringList groups; groups << "";
+ VarMap nets = global->getData("Networks").toMap();
+ foreach(QString net, nets.keys()) {
+ QString gr = nets[net].toMap()["Group"].toString();
+ if(!groups.contains(gr) && !gr.isEmpty()) {
+ groups.append(gr);