Index: applications/editors/josm/plugins/photoadjust/build.xml
===================================================================
--- applications/editors/josm/plugins/photoadjust/build.xml	(revision 34542)
+++ applications/editors/josm/plugins/photoadjust/build.xml	(revision 34543)
@@ -5,5 +5,5 @@
     <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="13060"/>
+    <property name="plugin.main.version" value="14153"/>
 
     <!-- Configure these properties (replace "..." accordingly).
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 34542)
+++ 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());
