* src/ViewManager.py:

* src/DbLoader.py:
	Remove os.chdir, no longer needed for relative path

2008-02-24  Douglas S. Blank <dblank@cs.brynmawr.edu>


svn: r10105
This commit is contained in:
Benny Malengier 2008-02-24 14:19:40 +00:00
parent 7ff838b08b
commit cd756e5b13
3 changed files with 5 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2008-02-24 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/ViewManager.py:
* src/DbLoader.py:
Remove os.chdir, no longer needed for relative path
2008-02-24 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DataViews/GrampletView.py: don't save deleted gramplets
* src/glade/gramps.glade: changed tooltip from "close" to "delete"

View File

@ -268,10 +268,6 @@ class DbLoader:
try:
self.dbstate.db.load(filename, self.uistate.pulse_progressbar, mode)
self.dbstate.db.set_save_path(filename)
try:
os.chdir(os.path.dirname(filename))
except (OSError, IOError):
print "could not change directory"
except OSError, msg:
ErrorDialog(
_("Could not open file: %s") % filename, str(msg))

View File

@ -1057,10 +1057,6 @@ class ViewManager:
if value:
(filename, title) = value
self.db_loader.read_file(filename)
try:
os.chdir(os.path.dirname(filename))
except (IOError, OSError):
pass
self.__post_load_newdb(filename, 'x-directory/normal', title)
def __read_recent_file(self, filename):