diff src/trash.c @ 766:7148e125bf23

Check for existing editor command using is_valid_editor_command().
author zas_
date Fri, 30 May 2008 07:20:25 +0000
parents 2d8a8e892b5e
children d6a7fb4b8e7c
line wrap: on
line diff
--- a/src/trash.c	Thu May 29 07:58:34 2008 +0000
+++ b/src/trash.c	Fri May 30 07:20:25 2008 +0000
@@ -15,7 +15,7 @@
 #include "trash.h"
 #include "utilops.h"
 
-
+#include "editors.h"
 #include "filedata.h"
 #include "ui_fileops.h"
 #include "ui_misc.h"
@@ -181,7 +181,7 @@
 {
 	gchar *buf;
 
-	if (options->editor[CMD_DELETE].command)
+	if (is_valid_editor_command(CMD_DELETE))
 		{
 		buf = g_strdup(_("Deletion by external command"));
 		}