[anjuta/git-shell: 232/234] libanjuta: Don't start an AnjutaCommand that is already running



commit 59d45216627c38933d5424c219eb7b4fecee2086
Author: James Liggett <jrliggett cox net>
Date:   Tue Apr 20 15:39:41 2010 -0700

    libanjuta: Don't start an AnjutaCommand that is already running

 libanjuta/anjuta-command.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libanjuta/anjuta-command.c b/libanjuta/anjuta-command.c
index 6f578d6..dac4ad1 100644
--- a/libanjuta/anjuta-command.c
+++ b/libanjuta/anjuta-command.c
@@ -248,9 +248,12 @@ anjuta_command_class_init (AnjutaCommandClass *klass)
 void
 anjuta_command_start (AnjutaCommand *self)
 {
-	g_signal_emit_by_name (self, "command-started");
+	if (!self->priv->running)
+	{
+		g_signal_emit_by_name (self, "command-started");
 
-	ANJUTA_COMMAND_GET_CLASS (self)->start (self);
+		ANJUTA_COMMAND_GET_CLASS (self)->start (self);
+	}
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]