Index: applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java
===================================================================
--- applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java	(revision 34424)
+++ applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java	(revision 34425)
@@ -300,9 +300,13 @@
 			actionPanel.showButton.setVisible(false);
 			setSize(new Dimension(380, 350));
-			loadAction();
+			if (!loadAction()) {
+				cancelAction();
+				return;
+			}
 		} else {
 			setSize(new Dimension(450, 600));
-//			setSize(450, 600);
-		}
+		}
+		setAlwaysOnTop(true);
+		setVisible(true);
 	}
 
@@ -360,5 +364,5 @@
 	}
 
-	 private void loadAction() {
+	 private boolean loadAction() {
 		 /*
 		  * perform load PDF file to preview
@@ -368,8 +372,5 @@
 
 		if (newFileName == null) {
-			if (Preferences.getGuiMode() == Preferences.GuiMode.Simple) {
-				cancelAction();
-			} else
-				return;
+			return false;
 		}
 		Logging.debug("PdfImport: Load Preview");
@@ -425,4 +426,5 @@
 			}
 		});
+		return true;
 	}
 
Index: applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportAction.java
===================================================================
--- applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportAction.java	(revision 34424)
+++ applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportAction.java	(revision 34425)
@@ -37,7 +37,5 @@
     	 */
         LoadPdfDialog dialog = new LoadPdfDialog();
-        dialog.setAlwaysOnTop(true);
         dialog.setTitle(tr("Import PDF"));
-        dialog.setVisible(true);
     }
 }
