small fix on saving back loaded project

This commit is contained in:
Marcel Paffrath 2017-05-29 11:34:22 +02:00
parent 8975913143
commit 3ad82c0c9e
2 changed files with 2 additions and 2 deletions

View File

@ -1357,7 +1357,6 @@ class MainWindow(QMainWindow):
self.update_status('picks accepted ({0})'.format(station)) self.update_status('picks accepted ({0})'.format(station))
replot = self.addPicks(station, pickDlg.getPicks()) replot = self.addPicks(station, pickDlg.getPicks())
self.get_current_event().setPick(station, pickDlg.getPicks()) self.get_current_event().setPick(station, pickDlg.getPicks())
print(pickDlg.getPicks())
if replot: if replot:
self.plotWaveformData() self.plotWaveformData()
self.drawPicks() self.drawPicks()
@ -2116,6 +2115,7 @@ class Project(object):
import _pickle as cPickle import _pickle as cPickle
infile = open(filename, 'rb') infile = open(filename, 'rb')
project = cPickle.load(infile) project = cPickle.load(infile)
project.location = filename
print('Loaded %s' % filename) print('Loaded %s' % filename)
return project return project

View File

@ -1 +1 @@
b3a44-dirty 8975-dirty