changeset 14410:9a9236bf1a28 draft

(svn r18967) -Fix (r18966): Never trust your copy&paste skills.
author frosch <frosch@openttd.org>
date Sat, 30 Jan 2010 18:43:14 +0000
parents 1eaefde497fd
children 15624645816e
files src/network/network_gui.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -699,7 +699,7 @@
 				this->SetDirty();
 
 				/* FIXME the disabling should go into some InvalidateData, which is called instead of the SetDirty */
-				if (!this->IsWidgetDisabled(NGWW_JOIN)) this->OnClick(pt, NGWW_JOIN, 1);
+				if (click_count > 1 && !this->IsWidgetDisabled(NGWW_JOIN)) this->OnClick(pt, NGWW_JOIN, 1);
 			} break;
 
 			case NGWW_LASTJOINED: {
@@ -718,7 +718,7 @@
 					this->SetDirty();
 
 					/* FIXME the disabling should go into some InvalidateData, which is called instead of the SetDirty */
-					if (!this->IsWidgetDisabled(NGWW_JOIN)) this->OnClick(pt, NGWW_JOIN, 1);
+					if (click_count > 1 && !this->IsWidgetDisabled(NGWW_JOIN)) this->OnClick(pt, NGWW_JOIN, 1);
 				}
 			} break;
 
@@ -1636,7 +1636,7 @@
 				this->SetDirty();
 
 				/* FIXME the disabling should go into some InvalidateData, which is called instead of the SetDirty */
-				if (!this->IsWidgetDisabled(NLWW_JOIN)) this->OnClick(pt, NLWW_JOIN, 1);
+				if (click_count > 1 && !this->IsWidgetDisabled(NLWW_JOIN)) this->OnClick(pt, NLWW_JOIN, 1);
 			} break;
 
 			case NLWW_JOIN:     // Join company