--- python/manager.py +++ python/manager.py @@ -82,10 +82,13 @@ self.btctl.connect ("status_change", self.on_status_change) self.btctl.connect ("add_device", self.on_add_device) - if not self.btctl.is_initialised(): + try: + self.btctl.is_initialised() + except: hig_alert.reportError (self.window, _("Could not find Bluetooth devices on the system"), _("Please make sure that your Bluetooth adapter is correctly plugged in your machine.")) sys.exit (1) + self.window.show_all () self.read_devices () def setup_gui (self): @@ -163,8 +166,6 @@ self.scrolly.set_policy (gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.scrolly.add (self.iconlist) - self.window.show_all () - logoname = self.image_file ("btdevice-misc.png") self.logo = gtk.gdk.pixbuf_new_from_file (logoname)