bugfix- save file prompt while creating a new tab linux

Signed-off-by: Umair <omerjerk@gmail.com>

Bugfix for the following issue
https://github.com/processing/processing/issues/2815