if(!globalHistory.historyContains(folderURL) && !file.equals(folderPanel.getFileTable().getSelectedFile())) {
// Restore default cursor
mainFrame.setCursor(Cursor.getDefaultCursor());
// Download or browse file ?
QuestionDialog dialog = new QuestionDialog(mainFrame,
null,
Translator.get("table.download_or_browse"),
mainFrame,
new String[] {BROWSE_TEXT, DOWNLOAD_TEXT, CANCEL_TEXT},
new int[] {BROWSE_ACTION, DOWNLOAD_ACTION, CANCEL_ACTION},
0);
int ret = dialog.getActionValue();
if(ret==-1 || ret==CANCEL_ACTION)
break;
// Download file