diff frontends/src/primitivus/profile_manager.py @ 1609:66f0e877625b

primitivus: fixed alert case + alert in profileManager
author Goffi <goffi@goffi.org>
date Mon, 16 Nov 2015 08:57:36 +0100
parents 039d96e131be
children 7923dc51143e
line wrap: on
line diff
--- a/frontends/src/primitivus/profile_manager.py	Mon Nov 16 08:57:02 2015 +0100
+++ b/frontends/src/primitivus/profile_manager.py	Mon Nov 16 08:57:36 2015 +0100
@@ -101,7 +101,7 @@
     def profileCreationFailure(self, reason):
         self.host.removePopUp()
         message = self._getErrorMessage(reason)
-        self.alert(_("Can't create profile"), message)
+        self.host.alert(_("Can't create profile"), message)
 
     def deleteProfile(self, button):
         self._deleteProfile()
@@ -152,10 +152,6 @@
         self.current.password = password
         self.host.redraw()
 
-    def alert(self, title, message):
-        popup = sat_widgets.Alert(title, message, ok_cb=self.host.removePopUp)
-        self.host.showPopUp(popup)
-
     def onProfileChange(self, list_wid, widget=None, selected=None):
         """This is called when a profile is selected in the profile list.