Ticket #2087: crash in standalone editor and viewer.

Don't try update file manager panels if mc runs as standalone editor or viewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-03-06 11:08:18 +03:00
parent 33b7a382ea
commit d2a9152cec

View File

@ -304,8 +304,10 @@ toggle_panels (void)
}
#endif /* HAVE_SUBSHELL_SUPPORT */
update_panels (UP_OPTIMIZE, UP_KEEPSEL);
update_xterm_title_path ();
if ((view_one_file == NULL) && (edit_one_file == NULL)) {
update_panels (UP_OPTIMIZE, UP_KEEPSEL);
update_xterm_title_path ();
}
repaint_screen ();
}