Ignore:
Timestamp:
2012-02-07T21:35:45+01:00 (12 years ago)
Author:
jttt
Message:

access gui in edt

File:
1 edited

Legend:

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

    r4718 r4907  
    9999                    ((PleaseWaitProgressMonitor)progressMonitor).close();
    100100                }
    101                 afterFinish();
     101                if (EventQueue.isDispatchThread()) {
     102                    afterFinish();
     103                } else {
     104                    EventQueue.invokeAndWait(new Runnable() {
     105                        public void run() {
     106                            afterFinish();
     107                        }
     108                    });
     109                }
    102110            }
    103111        } catch (final Exception e) {
Note: See TracChangeset for help on using the changeset viewer.