Changeset 2831 in josm for trunk/src/org


Ignore:
Timestamp:
2010-01-12T19:30:02+01:00 (14 years ago)
Author:
stoecker
Message:

fix #4352 - don't show not working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java

    r2719 r2831  
    147147     */
    148148    static public boolean showConfirmationDialog(String preferenceKey, Component parent, Object message, String title, int optionType, int messageType, int trueOption) throws HeadlessException {
    149         boolean donotshow = getDialogShowingEnabled(preferenceKey);
    150         if (donotshow && (getDialogReturnValue(preferenceKey) >= 0))
     149        if (!getDialogShowingEnabled(preferenceKey) && (getDialogReturnValue(preferenceKey) >= 0))
    151150            return getDialogReturnValue(preferenceKey) == trueOption;
    152         MessagePanel pnl = new MessagePanel(donotshow, message);
     151        MessagePanel pnl = new MessagePanel(false, message);
    153152        int ret = JOptionPane.showConfirmDialog(parent, pnl, title, optionType, messageType);
    154153        if ((ret >= 0) && !pnl.getDialogShowingEnabled()) {
Note: See TracChangeset for help on using the changeset viewer.