The file selector must return an empty filename when the dialog was dismissed/canceled.
Work around FLTK's ownership-of-OpenGL-context assumption. This fixes the crash in the main window's update after the texture window was shown.