[gnome-commander] Print message on screren if no command is given
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Print message on screren if no command is given
- Date: Sun, 8 Feb 2015 19:34:23 +0000 (UTC)
commit 8310e24f05f30906b61e9edd9285c585693376ed
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sun Feb 8 16:37:35 2015 +0100
Print message on screren if no command is given
src/gnome-cmd-user-actions.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 14d0015..35f2154 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -790,6 +790,7 @@ void file_edit (GtkMenuItem *menuitem, gpointer not_used)
if (parse_command(&cmd, command) == 0)
{
DEBUG ('g', "Edit file command is not valid.\n");
+ gnome_cmd_show_message (*main_win, _("No valid command given."));
return;
}
else
@@ -934,6 +935,7 @@ void file_sendto (GtkMenuItem *menuitem, gpointer not_used)
if (parse_command(&cmd, g_strdup(gnome_cmd_data.options.sendto)) == 0)
{
DEBUG ('g', "Sendto command is not valid.\n");
+ gnome_cmd_show_message (*main_win, _("No valid command given."));
return;
}
else
@@ -1162,6 +1164,7 @@ void command_execute (GtkMenuItem *menuitem, gpointer command)
if (parse_command(&cmd, (gchar*) command) == 0)
{
DEBUG ('g', "Command is not valid.\n");
+ gnome_cmd_show_message (*main_win, _("No valid command given."));
return;
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]