diff --git a/src/main.c b/src/main.c
index 6789168..8ecbc85 100644
--- a/src/main.c
+++ b/src/main.c
@@ -586,6 +586,8 @@ message_received_cb (UniqueApp         *app,
         const gchar *filename;
 
         filename = (const gchar *) unique_message_data_get (message, NULL);
+        if (filename && !*filename)
+                filename = NULL;
 
         switch (command)
         {
@@ -624,7 +626,6 @@ message_received_cb (UniqueApp         *app,
                 break;
         case COMMAND_IMPORT_PHOTOS:
                 gth_browser_activate_action_file_camera_import (NULL, NULL);
-                dlg_photo_importer (NULL, NULL, filename, TRUE);
                 break;
         default:
                 break;
