From 6b0acd9b888ce377850c90257e54282d56a698b9 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 11 Nov 2011 15:51:50 +0000 Subject: [PATCH] * hotfix: make sure to reset the cursor and to stay in loading_state forever --- source/net/sourceforge/filebot/ui/rename/RenameAction.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/ui/rename/RenameAction.java b/source/net/sourceforge/filebot/ui/rename/RenameAction.java index 89ca4bd4..33f0e59f 100644 --- a/source/net/sourceforge/filebot/ui/rename/RenameAction.java +++ b/source/net/sourceforge/filebot/ui/rename/RenameAction.java @@ -58,8 +58,8 @@ class RenameAction extends AbstractAction { return; } + Window window = getWindow(evt.getSource()); try { - Window window = getWindow(evt.getSource()); Map renameMap = checkRenamePlan(validate(model.getRenameMap(), window)); window.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); @@ -82,6 +82,8 @@ class RenameAction extends AbstractAction { // could not rename one of the files, revert all changes UILogger.warning(e.getMessage()); } + + window.setCursor(Cursor.getDefaultCursor()); }