c274395
commit d2a9152cec8db6d21af77bb91490666a85e48d55
c274395
Author: Andrew Borodin <aborodin@vmail.ru>
c274395
Date:   Sat Mar 6 11:08:18 2010 +0300
c274395
c274395
    Ticket #2087: crash in standalone editor and viewer.
c274395
    
c274395
    Don't try update file manager panels if mc runs as standalone editor or viewer.
c274395
    
c274395
    Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
c274395
c274395
diff --git a/src/execute.c b/src/execute.c
c274395
index e8f9ad3..16c0898 100644
c274395
--- a/src/execute.c
c274395
+++ b/src/execute.c
c274395
@@ -304,8 +304,10 @@ toggle_panels (void)
c274395
     }
c274395
 #endif				/* HAVE_SUBSHELL_SUPPORT */
c274395
 
c274395
-    update_panels (UP_OPTIMIZE, UP_KEEPSEL);
c274395
-    update_xterm_title_path ();
c274395
+    if ((view_one_file == NULL) && (edit_one_file == NULL)) {
c274395
+	update_panels (UP_OPTIMIZE, UP_KEEPSEL);
c274395
+	update_xterm_title_path ();
c274395
+    }
c274395
     repaint_screen ();
c274395
 }
c274395