Ref #820: Problem with window in the current build
[geeqie.git] / src / remote.c
index e4249d8..78634cf 100644 (file)
@@ -1269,11 +1269,7 @@ static void gr_pwd(const gchar *text, GIOChannel *channel, gpointer data)
 {
        LayoutWindow *lw = NULL;
 
-       lw = layout_find_by_layout_id("main");
-       if (!lw)
-               {
-               lw = g_list_first(layout_window_list)->data;
-               }
+       layout_valid(&lw);
 
        g_free(pwd);
        pwd = g_strdup(text);