~pimvullers/beat-box/fix-983560

« back to all changes in this revision

Viewing changes to src/Devices/DeviceManager.vala

  • Committer: sgringwe at gmail
  • Date: 2012-04-18 20:42:05 UTC
  • Revision ID: sgringwe@gmail.com-20120418204205-v1qcna51y2cbt9r9
*Abstracted ViewWrapper for different view types to spread out view-specific code
*Re-fixed libnotify closing/updating
*Put welcome screen in proper views rather than LW
*Fixed device add/removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
        public virtual void mount_removed (Mount mount) {
174
174
                foreach(var dev in devices) {
175
175
                        if(dev.get_path() == mount.get_default_location().get_path()) {
 
176
                                // Let other objects remove device reference
 
177
                                device_removed(dev);
 
178
                                
 
179
                                // Actually remove it
176
180
                                devices.remove(dev);
177
 
                                device_removed(dev);
178
181
                                
179
182
                                // removing temp medias
180
183
                                var toRemove = new LinkedList<Media>();