From f030154fe727e25a2afe1f78b3998c2d2dba95e4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 18 Aug 2009 09:24:15 +0000 Subject: astyle cleanup, corrects not loading of material textures --- src/client/targeticonbutton.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client/targeticonbutton.cc') diff --git a/src/client/targeticonbutton.cc b/src/client/targeticonbutton.cc index cd3716f..8bd3b1a 100644 --- a/src/client/targeticonbutton.cc +++ b/src/client/targeticonbutton.cc @@ -9,7 +9,8 @@ #include "client/targets.h" #include "core/commandbuffer.h" -namespace client { +namespace client +{ TargetIconButton::TargetIconButton(Widget *parent, const char *icon, const char *command, unsigned int flags) : IconButton(parent, icon, command) { @@ -18,7 +19,7 @@ TargetIconButton::TargetIconButton(Widget *parent, const char *icon, const char } bool TargetIconButton::on_keypress(const int key, const unsigned int modifier) -{ +{ if (key == 512 + SDL_BUTTON_LEFT) { if (enabled() && command().size() && targets::current()) { core::cmd() << "@" << command() << " " << targets::current_id() << std::endl; -- cgit v1.2.3