From f9cebfcfc407a01c1116208771d289f3017e2cc5 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 30 Jan 2010 18:43:14 +0000 Subject: (svn r18967) -Fix (r18966): Never trust your copy&paste skills. --- src/network/network_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/network') diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index d14657b5a..6da123303 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -699,7 +699,7 @@ public: 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 @@ public: 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 @@ struct NetworkLobbyWindow : public Window { 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 -- cgit v1.2.3-70-g09d2