Skip to content

Commit

Permalink
gui setting fix; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Antony Lewis committed Jul 22, 2015
1 parent 2c11e69 commit 7ed44a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
GetDist
===================
:GetDist: MCMC sample analysis, plotting and GUI
:Version: 0.2.4
:Version: 0.2.5
:Author: Antony Lewis
:Homepage: https://github.com/cmbant/getdist

Expand Down
2 changes: 1 addition & 1 deletion getdist/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = 'Antony Lewis'
__version__ = "0.2.4"
__version__ = "0.2.5"

from getdist.inifile import IniFile
from getdist.paramnames import ParamInfo, ParamNames
Expand Down
2 changes: 2 additions & 0 deletions getdist/gui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def __init__(self, app, ini=None, base_dir=None):
Dirs = [Dirs] # Qsettings doesn't save single item lists reliably
if Dirs is not None:
Dirs = [x for x in Dirs if os.path.exists(x)]
if not lastDir in Dirs and os.path.exists(lastDir):
Dirs.insert(0, lastDir)
self.listDirectories.addItems(Dirs)
if os.path.exists(lastDir):
self.listDirectories.setCurrentIndex(Dirs.index(lastDir))
Expand Down

0 comments on commit 7ed44a5

Please sign in to comment.