diff frontends/src/primitivus/profile_manager.py @ 893:308a96bc7c1b

core, frontends: add method asyncDeleteProfile, remove synchronous methods createProfile and deleteProfile
author souliane <souliane@mailoo.org>
date Mon, 03 Mar 2014 09:59:10 +0100
parents 1fe00f0c9a91
children 73a0b7f94674
line wrap: on
line diff
--- a/frontends/src/primitivus/profile_manager.py	Fri Feb 28 11:19:08 2014 +0100
+++ b/frontends/src/primitivus/profile_manager.py	Mon Mar 03 09:59:10 2014 +0100
@@ -92,8 +92,7 @@
     def deleteProfile(self, button):
         profile_name = self.list_profile.getSelectedValue()
         if profile_name:
-            self.host.bridge.deleteProfile(profile_name)
-            self.__refillProfiles()
+            self.host.bridge.asyncDeleteProfile(profile_name, callback=self.__refillProfiles)
         self.host.removePopUp()
 
     def onNewProfile(self, e):