r4911 - in branches/nexuiz-2.0: . data/qcsrc/menu/nexuiz

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Oct 27 06:54:17 EDT 2008


Author: div0
Date: 2008-10-27 06:54:17 -0400 (Mon, 27 Oct 2008)
New Revision: 4911

Modified:
   branches/nexuiz-2.0/.patchsets
   branches/nexuiz-2.0/data/qcsrc/menu/nexuiz/serverlist.c
Log:
r4910 | div0 | 2008-10-27 11:53:12 +0100 (Mon, 27 Oct 2008) | 2 lines
clear IP address box when refiltering

Modified: branches/nexuiz-2.0/.patchsets
===================================================================
--- branches/nexuiz-2.0/.patchsets	2008-10-27 10:53:12 UTC (rev 4910)
+++ branches/nexuiz-2.0/.patchsets	2008-10-27 10:54:17 UTC (rev 4911)
@@ -1,2 +1,2 @@
 master = svn://svn.icculus.org/nexuiz/trunk
-revisions_applied = 1-4908
+revisions_applied = 1-4910

Modified: branches/nexuiz-2.0/data/qcsrc/menu/nexuiz/serverlist.c
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/menu/nexuiz/serverlist.c	2008-10-27 10:53:12 UTC (rev 4910)
+++ branches/nexuiz-2.0/data/qcsrc/menu/nexuiz/serverlist.c	2008-10-27 10:54:17 UTC (rev 4911)
@@ -241,7 +241,6 @@
 	owned = (me.selectedServer == me.ipAddressBox.text);
 
 	me.nItems = gethostcachevalue(SLIST_HOSTCACHEVIEWCOUNT);
-	me.connectButton.disabled = (me.nItems == 0);
 
 	found = 0;
 	if(me.selectedServer)
@@ -352,16 +351,25 @@
 	else
 		me.filterString = string_null;
 	me.refreshServerList(me, 0);
+
+	me.ipAddressBox.setText(me.ipAddressBox, "");
+	me.ipAddressBox.cursorPos = 0;
 }
 void ServerList_ShowEmpty_Click(entity box, entity me)
 {
 	box.setChecked(box, me.filterShowEmpty = !me.filterShowEmpty);
 	me.refreshServerList(me, 0);
+
+	me.ipAddressBox.setText(me.ipAddressBox, "");
+	me.ipAddressBox.cursorPos = 0;
 }
 void ServerList_ShowFull_Click(entity box, entity me)
 {
 	box.setChecked(box, me.filterShowFull = !me.filterShowFull);
 	me.refreshServerList(me, 0);
+
+	me.ipAddressBox.setText(me.ipAddressBox, "");
+	me.ipAddressBox.cursorPos = 0;
 }
 void setSortOrderNexuizServerList(entity me, float field, float direction)
 {




More information about the nexuiz-commits mailing list