2006-05-21 Don Allingham <don@gramps-project.org>
* src/ViewManager.py: handle export, import, and save as if database does not exist, yet UIManager still wants to call them. svn: r6748
This commit is contained in:
parent
b8f421b049
commit
546ae1a6ff
@ -1,3 +1,7 @@
|
|||||||
|
2006-05-21 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/ViewManager.py: handle export, import, and save as if
|
||||||
|
database does not exist, yet UIManager still wants to call them.
|
||||||
|
|
||||||
2006-05-21 Alex Roitman <shura@gramps-project.org>
|
2006-05-21 Alex Roitman <shura@gramps-project.org>
|
||||||
* configure.in: Set up for the next release.
|
* configure.in: Set up for the next release.
|
||||||
|
|
||||||
|
@ -694,16 +694,18 @@ class ViewManager:
|
|||||||
self.pages[num].change_page()
|
self.pages[num].change_page()
|
||||||
|
|
||||||
def import_data(self, obj):
|
def import_data(self, obj):
|
||||||
self.db_loader.import_file()
|
if self.state.db.db_is_open:
|
||||||
self.post_load()
|
self.db_loader.import_file()
|
||||||
|
self.post_load()
|
||||||
|
|
||||||
def open_activate(self, obj):
|
def open_activate(self, obj):
|
||||||
(filename,filetype) = self.db_loader.open_file()
|
(filename,filetype) = self.db_loader.open_file()
|
||||||
self.post_load_newdb(filename,filetype)
|
self.post_load_newdb(filename,filetype)
|
||||||
|
|
||||||
def save_as_activate(self,obj):
|
def save_as_activate(self,obj):
|
||||||
(filename,filetype) = self.db_loader.save_as()
|
if self.state.db.db_is_open:
|
||||||
self.post_load_newdb(filename,filetype)
|
(filename,filetype) = self.db_loader.save_as()
|
||||||
|
self.post_load_newdb(filename,filetype)
|
||||||
|
|
||||||
def new_activate(self,obj):
|
def new_activate(self,obj):
|
||||||
(filename,filetype) = self.db_loader.new_file()
|
(filename,filetype) = self.db_loader.new_file()
|
||||||
@ -874,8 +876,9 @@ class ViewManager:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def export_data(self, obj):
|
def export_data(self, obj):
|
||||||
import Exporter
|
if self.state.db.db_is_open:
|
||||||
Exporter.Exporter(self.state, self.uistate)
|
import Exporter
|
||||||
|
Exporter.Exporter(self.state, self.uistate)
|
||||||
|
|
||||||
def build_tools_menu(self):
|
def build_tools_menu(self):
|
||||||
self.toolactions = gtk.ActionGroup('ToolWindow')
|
self.toolactions = gtk.ActionGroup('ToolWindow')
|
||||||
|
Loading…
Reference in New Issue
Block a user