Skip to content

Commit

Permalink
[Windows] Open in FileManager should select the file/dir #51
Browse files Browse the repository at this point in the history
  • Loading branch information
markiewb committed Jan 25, 2016
1 parent 5d9dc50 commit 7b15862
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions QuickOpener/src/me/dsnet/quickopener/actions/FileSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public FileSystem(DataObject dataObj) {

@Override
public void actionPerformed(ActionEvent e) {
File toOpen = PathFinder.getActiveFile(dataObj,true);
if (toOpen == null) {
NotifyDescriptor d = new NotifyDescriptor.Message(QuickMessages.NO_FILE_IN_SELECTION,NotifyDescriptor.WARNING_MESSAGE);
File file = PathFinder.getActiveFile(dataObj, false);
if (file == null) {
NotifyDescriptor d = new NotifyDescriptor.Message(QuickMessages.NO_FILE_IN_SELECTION, NotifyDescriptor.WARNING_MESSAGE);
DialogDisplayer.getDefault().notify(d);
return;
}
try {
Commands.getPlatform().browseInFileSystem(toOpen);
Commands.getPlatform().browseInFileSystemToFileOrDir(file);
} catch (Exception ex) {}//ex.printStackTrace();}
}
}

0 comments on commit 7b15862

Please sign in to comment.