Comment 1 for bug 629374

Fixes the bug by replacing last part of the window title with new file name