fix Gdk-CRITICAL **: IA__gdk_window_get_window_type: assertion 'GDK_IS_WINDOW (window)' failed

This commit is contained in:
Garux
2020-06-05 23:49:04 +03:00
parent 3e7ee32ded
commit 35309c8c6c
7 changed files with 14 additions and 42 deletions

View File

@@ -135,7 +135,6 @@ int DoLoadPortalFileDialog(){
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( check2d ), portals.show_2d );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( check3d ), portals.show_3d );
gtk_grab_add( dlg );
gtk_widget_show( dlg );
while ( loop )
@@ -150,7 +149,6 @@ int DoLoadPortalFileDialog(){
portals.show_2d = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( check2d ) ) ? true : false;
}
gtk_grab_remove( dlg );
gtk_widget_destroy( dlg );
return ret;