summaryrefslogtreecommitdiffstats
path: root/macosx/ExpressController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/ExpressController.m')
-rw-r--r--macosx/ExpressController.m18
1 files changed, 17 insertions, 1 deletions
diff --git a/macosx/ExpressController.m b/macosx/ExpressController.m
index fb881fa52..f9b6f95ef 100644
--- a/macosx/ExpressController.m
+++ b/macosx/ExpressController.m
@@ -158,7 +158,15 @@
[fOpenIndicator setIndeterminate: YES];
[fOpenIndicator startAnimation: nil];
- hb_scan( fHandle, [fOpenFolderString UTF8String], 0 );
+ if( [fOpenMatrix selectedRow] )
+ {
+ hb_scan( fHandle, [fOpenFolderString UTF8String], 0 );
+ }
+ else
+ {
+ hb_scan( fHandle, [[fOpenPopUp titleOfSelectedItem]
+ UTF8String], 0 );
+ }
NSTimer * timer = [NSTimer scheduledTimerWithTimeInterval: 0.5
target: self selector: @selector( openTimer: ) userInfo: nil
@@ -230,6 +238,10 @@
{
[fOpenPopUp selectItemAtIndex: 0];
}
+ if( [fOpenMatrix isEnabled] )
+ {
+ [self openEnable: YES];
+ }
}
- (void) openBrowseDidEnd: (NSOpenPanel *) sheet returnCode: (int)
@@ -262,6 +274,10 @@
{
[fOpenFolderField setEnabled: NO];
[fOpenBrowseButton setEnabled: NO];
+ if( ![fOpenPopUp numberOfItems] )
+ {
+ [fOpenGoButton setEnabled: NO];
+ }
}
}
}