From: Thomas Debesse Date: Tue, 12 Feb 2019 00:44:28 +0000 (+0100) Subject: Garux: disable 2button press because of mistake X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a1d0ae89b533538ee7fcda048d452eac143cd1fd;p=xonotic%2Fnetradiant.git Garux: disable 2button press because of mistake --- diff --git a/radiant/texwindow.cpp b/radiant/texwindow.cpp index ef0fc6f9..1d766aea 100644 --- a/radiant/texwindow.cpp +++ b/radiant/texwindow.cpp @@ -1526,6 +1526,8 @@ gboolean TextureBrowser_button_press( ui::Widget widget, GdkEventButton* event, } } else if ( event->type == GDK_2BUTTON_PRESS ) { + #define GARUX_DISABLE_2BUTTON + #ifndef GARUX_DISABLE_2BUTTON const char* sh = textureBrowser->shader.c_str(); char* dir = strrchr( sh, '/' ); if( dir != NULL ){ @@ -1540,6 +1542,7 @@ gboolean TextureBrowser_button_press( ui::Widget widget, GdkEventButton* event, } } } + #endif } else if ( event->type == GDK_3BUTTON_PRESS ) { ScopeDisableScreenUpdates disableScreenUpdates( TextureBrowser_getComonShadersDir(), "Loading Textures" );