fixed bug: addExtension on mainWindow.py