Index: applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoPropertyEditor.java
===================================================================
--- applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoPropertyEditor.java	(revision 33803)
+++ applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoPropertyEditor.java	(revision 34543)
@@ -21,5 +21,4 @@
 import javax.swing.event.DocumentListener;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.JosmAction;
 import org.openstreetmap.josm.data.coor.LatLon;
@@ -102,5 +101,5 @@
                 updateLayer(layer, photo);
             } catch (AssertionError err) {
-                JOptionPane.showMessageDialog(Main.parent,
+                JOptionPane.showMessageDialog(MainApplication.getMainFrame(),
                                               tr("Please select an image first."),
                                               tr("No image selected"),
@@ -149,5 +148,5 @@
         public PropertyEditorDialog(String title, final ImageEntry image,
                                     final GeoImageLayer layer) {
-            super(Main.parent, title, tr("Ok"), tr("Cancel"));
+            super(MainApplication.getMainFrame(), title, tr("Ok"), tr("Cancel"));
             this.image = image;
             this.layer = layer;
@@ -186,5 +185,5 @@
                 @Override public void actionPerformed(ActionEvent evt) {
                     final LatLonDialog llDialog
-                        = new LatLonDialog(Main.parent,
+                        = new LatLonDialog(MainApplication.getMainFrame(),
                                            tr("Edit Image Coordinates"), null);
                     llDialog.setCoordinates(getLatLon());
