]> granicus.if.org Git - transmission/commitdiff
dragging directly onto group row won't change queue order
authorMitchell Livingston <livings124@transmissionbt.com>
Wed, 14 May 2008 18:09:51 +0000 (18:09 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Wed, 14 May 2008 18:09:51 +0000 (18:09 +0000)
macosx/Controller.m

index c55a33b5b00ab18469a4bde640359c4ecf235246..91d4037b64a4696060dc5e8fa9d35b96074ae1d0 100644 (file)
@@ -2618,17 +2618,11 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
                     index = [[group objectForKey: @"Torrents"] indexOfObject: item] + 1;
                     item = group;
                 }
-                else
-                {
-                    if (index == NSOutlineViewDropOnItemIndex)
-                        index = [[item objectForKey: @"Torrents"] count];
-                }
             }
             else
             {
                 if ([item isKindOfClass: [Torrent class]])
                     item = [fTableView parentForItem: item];
-                
                 index = NSOutlineViewDropOnItemIndex;
             }
         }
@@ -2685,7 +2679,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
         }
         
         //reorder queue order
-        if ([[fDefaults stringForKey: @"Sort"] isEqualToString: SORT_ORDER])
+        if (newRow != NSOutlineViewDropOnItemIndex)
         {
             //find torrent to place under
             NSArray * groupTorrents = item ? [item objectForKey: @"Torrents"] : fDisplayedTorrents;