# HG changeset patch
# User Yuki KODAMA <[email protected]>
# Date 1247159284 -32400
# Node ID 017a5392fd4ca36b686038ae267c7fd570b2addd
# Parent 9b8db508ca57198bcaa52801abf0286e6db5d52a
datamine: open a new search page when closing last page
diff --git a/hggtk/datamine.py b/hggtk/datamine.py
--- a/hggtk/datamine.py
+++ b/hggtk/datamine.py
@@ -431,8 +431,11 @@
def close_page(self, button, widget):
'''Close page button has been pressed'''
num = self.notebook.page_num(widget)
- if num != -1 and self.notebook.get_n_pages() > 1:
+ if num != -1:
self.notebook.remove_page(num)
+ if self.notebook.get_n_pages() <= 1:
+ self.newpagecount = 1
+ self.add_search_page()
def add_header_context_menu(self, col, menu):
lb = gtk.Label(col.get_title())
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop