Fixed Bug #20 (Handle Numeric Reply 433 ERR_NICKNAMEINUSE properly)
[quassel.git] / gui / serverlist.cpp
index 39901cc..f49708c 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005 by The Quassel Team                                *
+ *   Copyright (C) 2005-07 by The Quassel Team                                *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -50,7 +50,6 @@ ServerListDlg::ServerListDlg(QWidget *parent) : QDialog(parent) {
       list << net;
     }
   }
-  qDebug() << "Autoconnect:"<<list;
   if(!list.isEmpty()) emit requestConnect(list);
 }
 
@@ -232,6 +231,8 @@ void NetworkEditDlg::updateWidgets() {
     //if(server["Exclude"].toBool()) item->setCheckState(Qt::Checked);
     ui.serverList->addItem(item);
   }
+  ui.performEdit->clear();
+  ui.performEdit->setText( network["Perform"].toString() );
   updateServerButtons();
 }
 
@@ -259,6 +260,7 @@ void NetworkEditDlg::accept() {
     /*if(ui.networkGroup->currentText() == "<none>") network["Group"] = "";
     else */ network["Group"] = ui.networkGroup->currentText();
     network["AutoConnect"] = ui.enableAutoConnect->isChecked();
+    network["Perform"] = ui.performEdit->toPlainText();
     if(ui.identityList->currentIndex()) network["Identity"] = ui.identityList->currentText();
     else network["Identity"] = "Default";
     QDialog::accept();