[PATCH] Re-allow the "Run" menuitem after target exited
- From: Dodji Seketeli <dodji seketeli org>
- To: Nemiver Development <nemiver-list gnome org>
- Subject: [PATCH] Re-allow the "Run" menuitem after target exited
- Date: Sun, 27 Oct 2013 16:56:41 +0100
Hello,
After my recent changes one could not hit the 'Run' menu item again,
once the inferior exited. Oops.
Fixed thus, tested and applied to master.
* 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 file 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"),
--
Dodji
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]