Skip to content

Commit

Permalink
don't release the window on close; check visiblity when brought back
Browse files Browse the repository at this point in the history
  • Loading branch information
ashchan authored and jtaby committed May 30, 2011
1 parent 390119f commit 345bf5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VimAck/AckWindow.xib
Expand Up @@ -51,7 +51,7 @@
<int key="NSWindowStyleMask">15</int>
<int key="NSWindowBacking">2</int>
<string key="NSWindowRect">{{425, 461}, {480, 270}}</string>
<int key="NSWTFlags">611844096</int>
<int key="NSWTFlags">1685585920</int>
<string key="NSWindowTitle">Window</string>
<string key="NSWindowClass">NSWindow</string>
<nil key="NSViewClass"/>
Expand Down
2 changes: 1 addition & 1 deletion VimAck/Classes/AppDelegate.rb
Expand Up @@ -56,7 +56,7 @@ def application(theApplication, openFile:path)
@windowController.projectRoot = path
@windowController.window.setTitle "Searching in #{path}"
@windowController.searchQuery.setStringValue ""
@windowController.window.makeKeyAndOrderFront nil
@windowController.window.makeKeyAndOrderFront(nil) unless @windowController.window.isVisible
else
ackWindowController = AckWindowController.alloc.initWithWindowNibName "AckWindow"
ackWindowController.projectRoot = path
Expand Down

0 comments on commit 345bf5b

Please sign in to comment.