2006-07-29 Alex Roitman <shura@gramps-project.org>
* src/ManagedWindow.py (ManagedWindow.show): Set opened flag; (ManagedWindow.close): Unser opened flag. * src/ViewManager.py (undo_history_close): Only close undo history window if it is open. * src/UndoHistory.py: (UndoHistory.__init__): Remove signal handling; (UndoHistory.close): Remove method, use one from the parent class. svn: r7089
This commit is contained in:
@ -835,7 +835,8 @@ class ViewManager:
|
||||
def undo_history_close(self):
|
||||
try:
|
||||
# Try closing undo history window if it exists
|
||||
self.undo_history_window.close()
|
||||
if self.undo_history_window.opened:
|
||||
self.undo_history_window.close()
|
||||
except AttributeError:
|
||||
# Let it go: history window does not exist
|
||||
pass
|
||||
|
Reference in New Issue
Block a user