From 040250a457d4c4dc0d4d5e27dfc8cafd6a385227 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Sat, 9 Aug 2014 18:56:29 +0000 Subject: MacGui: don’t allow to drop a preset before the built in ones. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6280 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBPresetsViewController.m | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'macosx') diff --git a/macosx/HBPresetsViewController.m b/macosx/HBPresetsViewController.m index e49586212..6dd76793a 100644 --- a/macosx/HBPresetsViewController.m +++ b/macosx/HBPresetsViewController.m @@ -304,8 +304,16 @@ if (!item) { - // no item to drop on - result = NSDragOperationGeneric; + if (index == 0) + { + // don't allow to drop on top + result = NSDragOperationNone; + } + else + { + // no item to drop on + result = NSDragOperationGeneric; + } } else { -- cgit v1.2.3