mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #2769: crash on compare files if one panel is not in the listing mode.
Added check of panel types before run file comparision. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c494f7b3bb
commit
809f668717
@ -1329,6 +1329,10 @@ compare_dirs_cmd (void)
|
||||
void
|
||||
diff_view_cmd (void)
|
||||
{
|
||||
/* both panels must be in the list mode */
|
||||
if (get_current_type () != view_listing || get_other_type () != view_listing)
|
||||
return;
|
||||
|
||||
dview_diff_cmd ();
|
||||
|
||||
if (mc_global.mc_run_mode == MC_RUN_FULL)
|
||||
|
Loading…
Reference in New Issue
Block a user