changeset 1335:44f8a846f3c1

A couple minor code cleanups on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 13 Nov 2011 08:47:41 +0000
parents 5e2ec37d1680
children 63e05ef4a59a
files mac/dw.m
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Sun Nov 13 08:16:36 2011 +0000
+++ b/mac/dw.m	Sun Nov 13 08:47:41 2011 +0000
@@ -6274,6 +6274,8 @@
             [cont selectRowIndexes:selected byExtendingSelection:YES];
             [selected release];
             [cont scrollRowToVisible:x];
+            DW_MUTEX_UNLOCK;
+            return;
         }
     }
     DW_MUTEX_UNLOCK;
@@ -6301,6 +6303,7 @@
         if((textcomp && thistext && strcmp(thistext, text) == 0) || (!textcomp && thistext == text))
         {
             [cont removeRow:x];
+            DW_MUTEX_UNLOCK;
             return;
         }
     }
@@ -6318,10 +6321,6 @@
     DW_MUTEX_LOCK;
     DWContainer *cont = handle;
     [cont optimize];
-#if 0
-    /* All resizable columns should expand */
-    [cont setColumnAutoresizingStyle:NSTableViewUniformColumnAutoresizingStyle];
-#endif
     DW_MUTEX_UNLOCK;
 }