get profile names worted by name
[stack/code/dboxswitch.git] / gui.py
diff --git a/gui.py b/gui.py
index 7b7fd57..920ee85 100644 (file)
--- a/gui.py
+++ b/gui.py
@@ -126,7 +126,7 @@ class Gui(QtGui.QDialog):
             profiles = self.profileManager.getProfilesList()
 
             for prpath in profiles:
-                pr = os.path.basename(prpath)
+                pr = self.profileManager.getBaseProfileName(prpath)
                 receiver = self.activateProfileAction(prpath)
                 menuItem_Profile = self.menuProfiles.addAction(pr)
                 if self.profileManager.isCurrentProfile(prpath):