Changeset 3272
- Timestamp:
- 06/23/08 06:47:06 (7 months ago)
- Location:
- branches/deluge-0.6/deluge/ui/gtkui
- Files:
-
- 2 modified
-
gtkui.py (modified) (2 diffs)
-
menubar.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/deluge-0.6/deluge/ui/gtkui/gtkui.py
r3267 r3272 133 133 self.config = deluge.configmanager.ConfigManager("gtkui.conf", DEFAULT_PREFS) 134 134 135 # We need to check on exit if it was started in classic mode to ensure we 136 # shutdown the daemon. 137 self.started_in_classic = self.config["classic_mode"] 138 135 139 # Start the Dbus Interface before anything else.. Just in case we are 136 140 # already running. … … 185 189 # Shutdown all components 186 190 component.shutdown() 191 if self.started_in_classic: 192 client.shutdown() 187 193 188 194 def _on_new_core(self, data): -
branches/deluge-0.6/deluge/ui/gtkui/menubar.py
r3269 r3272 37 37 import pkg_resources 38 38 39 import deluge.error 39 40 import deluge.component as component 40 41 from deluge.ui.client import aclient as client … … 223 224 log.debug("on_menuitem_quit_activate") 224 225 if self.config["classic_mode"]: 225 client.shutdown() 226 try: 227 client.shutdown() 228 except deluge.error.NoCoreError: 229 pass 226 230 self.window.quit() 227 231
