[nemiver] Re-allow the "Run" menuitem after target exited



commit 9ad93d890104c6a0c5dc6d592c741b99d62af930
Author: Dodji Seketeli <dodji seketeli org>
Date:   Fri Oct 25 08:41:13 2013 +0200

    Re-allow the "Run" menuitem after target exited
    
        * src/persp/dbgperspective/nmv-dbg-perspective.cc
        (DBGPerspective::init_actions): Move the RunMenuItemAction into
        the inferior_loaded_action_group.
        (DBGPerspective::update_action_group_sensitivity): Do not disallow
        the sensitivity of the inferior_loaded_action_group after the
        target exited.

 src/persp/dbgperspective/nmv-dbg-perspective.cc |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index 5ad3ff0..6acf77b 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -3039,7 +3039,6 @@ DBGPerspective::update_action_group_sensitivity (IDebugger::State a_state)
         m_priv->inferior_loaded_action_group->set_sensitive (true);
         m_priv->debugger_ready_action_group->set_sensitive (false);
         m_priv->debugger_busy_action_group->set_sensitive (false);
-        m_priv->inferior_loaded_action_group->set_sensitive (false);
     }
 }
 
@@ -3189,6 +3188,16 @@ DBGPerspective::init_actions ()
             false
         },
         {
+            "RunMenuItemAction",
+            Gtk::Stock::REFRESH,
+            _("_Run or Restart"),
+            _("Run or Restart the target"),
+            sigc::mem_fun (*this, &DBGPerspective::on_run_action),
+            ActionEntry::DEFAULT,
+            "<shift>F5",
+            true
+        },
+        {
             "SetBreakpointUsingDialogMenuItemAction",
             nil_stock_id,
             _("Set Breakpoint with Dialog..."),
@@ -3334,16 +3343,6 @@ DBGPerspective::init_actions ()
             false
         },
         {
-            "RunMenuItemAction",
-            Gtk::Stock::REFRESH,
-            _("_Run or Restart"),
-            _("Run or Restart the target"),
-            sigc::mem_fun (*this, &DBGPerspective::on_run_action),
-            ActionEntry::DEFAULT,
-            "<shift>F5",
-            true
-        },
-        {
             "ContinueMenuItemAction",
             Gtk::Stock::EXECUTE,
             _("_Continue"),


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