Avoided an assertion in linux native file chooser