[nemiver] Don't go crazy when removing a source view tab
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver] Don't go crazy when removing a source view tab
- Date: Sat, 18 Sep 2010 15:45:20 +0000 (UTC)
commit 3533b6363f249ab317258a019f4d19f37025a003
Author: Dodji Seketeli <dodji redhat com>
Date: Sat Sep 18 17:44:22 2010 +0200
Don't go crazy when removing a source view tab
* src/persp/dbgperspective/nmv-dbg-perspective.cc
(DBGPerspective::close_file): Update current page number when
removing a tab from the source view notebook.
src/persp/dbgperspective/nmv-dbg-perspective.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index bf64279..bd02707 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -5488,6 +5488,9 @@ DBGPerspective::close_file (const UString &a_path)
<< (int) (page_num)
<< ", path " << a_path);
m_priv->sourceviews_notebook->remove_page (page_num);
+ m_priv->current_page_num =
+ m_priv->sourceviews_notebook->get_current_page ();
+
if (!do_unmonitor_file (a_path)) {
LOG_ERROR ("failed to unmonitor file " << a_path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]