From a1d0ae89b533538ee7fcda048d452eac143cd1fd Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 12 Feb 2019 01:44:28 +0100 Subject: [PATCH] Garux: disable 2button press because of mistake --- radiant/texwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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" ); -- 2.39.2