@@ -428,7 +428,7 @@ def openApplianceActionSlot(self, *args):
428428 if not os .path .exists (self ._appliance_dir ):
429429 directory = Topology .instance ().projectsDirPath ()
430430 path , _ = QtWidgets .QFileDialog .getOpenFileName (self , "Import appliance" , directory ,
431- "All files (*.* );;GNS3 Appliance (*.gns3appliance *.gns3a)" ,
431+ "All files (*);;GNS3 Appliance (*.gns3appliance *.gns3a)" ,
432432 "GNS3 Appliance (*.gns3appliance *.gns3a)" )
433433 if path :
434434 self .loadPath (path )
@@ -447,7 +447,7 @@ def openProjectActionSlot(self):
447447 if self ._project_dir is None or not os .path .exists (self ._project_dir ):
448448 directory = Topology .instance ().projectsDirPath ()
449449 path , _ = QtWidgets .QFileDialog .getOpenFileName (self , "Open project" , directory ,
450- "All files (*.* );;GNS3 Project (*.gns3);;GNS3 Portable Project (*.gns3project *.gns3p);;NET files (*.net)" ,
450+ "All files (*);;GNS3 Project (*.gns3);;GNS3 Portable Project (*.gns3project *.gns3p);;NET files (*.net)" ,
451451 "GNS3 Project (*.gns3)" )
452452 if path :
453453 self .loadPath (path )
@@ -920,7 +920,7 @@ def _insertImageActionSlot(self):
920920 Slot called when inserting an image on the scene.
921921 """
922922 # supported image file formats
923- file_formats = "Image files (*.svg *.bmp *.jpeg *.jpg *.gif *.pbm *.pgm *.png *.ppm *.xbm *.xpm);;All files (*.* )"
923+ file_formats = "Image files (*.svg *.bmp *.jpeg *.jpg *.gif *.pbm *.pgm *.png *.ppm *.xbm *.xpm);;All files (*)"
924924
925925 path , _ = QtWidgets .QFileDialog .getOpenFileName (self , "Image" , self ._pictures_dir , file_formats )
926926 if not path :
@@ -1449,7 +1449,7 @@ def _importProjectActionSlot(self):
14491449 if not os .path .exists (directory ):
14501450 directory = Topology .instance ().projectsDirPath ()
14511451 path , _ = QtWidgets .QFileDialog .getOpenFileName (self , "Open portable project" , directory ,
1452- "All files (*.* );;GNS3 Portable Project (*.gns3project *.gns3p)" ,
1452+ "All files (*);;GNS3 Portable Project (*.gns3project *.gns3p)" ,
14531453 "GNS3 Portable Project (*.gns3project *.gns3p)" )
14541454 if path :
14551455 Topology .instance ().importProject (path )
0 commit comments