]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Garux: disable 2button press because of mistake
authorThomas Debesse <dev@illwieckz.net>
Tue, 12 Feb 2019 00:44:28 +0000 (01:44 +0100)
committerThomas Debesse <dev@illwieckz.net>
Tue, 12 Feb 2019 00:44:28 +0000 (01:44 +0100)
radiant/texwindow.cpp

index ef0fc6f900b029be6dd48f7e127d63d4f2791d66..1d766aea237eb16877f37e8fdc43af63df1cb009 100644 (file)
@@ -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" );