tolerate wolf resetting the log message text

This commit is contained in:
peter
2011-06-07 20:35:41 +02:00
parent 3fdecb6705
commit 4823e484a7
@@ -58,6 +58,7 @@ import java.awt.event.MouseEvent;
import java.util.*;
public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidget {
private static final String INTERNAL_LOG_REQUESTOR = "Internal log requestor";
private final ProcessPopup myPopup;
private final StatusPanel myInfoPanel = new StatusPanel();
@@ -364,8 +365,8 @@ public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge
return Pair.create(myInfoPanel.getText(), myCurrentRequestor);
}
boolean logMode = myInfoPanel.updateText(!hasProgressIndicators(), text);
myCurrentRequestor = logMode ? null : requestor;
boolean logMode = myInfoPanel.updateText(!hasProgressIndicators(), requestor == INTERNAL_LOG_REQUESTOR ? "" : text);
myCurrentRequestor = logMode ? INTERNAL_LOG_REQUESTOR : requestor;
return Pair.create(text, requestor);
}