Fix #207. version 0.4.0

This commit is contained in:
Kovid Goyal 2007-09-20 03:38:16 +00:00
parent 75953a47d2
commit 50a80a31df
2 changed files with 2 additions and 7 deletions

View File

@ -13,7 +13,7 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
''' E-book management software'''
__version__ = "0.3.110"
__version__ = "0.4.0"
__docformat__ = "epytext"
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
__appname__ = 'libprs500'
@ -23,12 +23,6 @@ iswindows = 'win32' in sys.platform.lower()
isosx = 'darwin' in sys.platform.lower()
islinux = not(iswindows or isosx)
if iswindows:
try:
import WmfPlugin
except:
pass
class CommandLineError(Exception):
pass

View File

@ -234,6 +234,7 @@ class FileDialog(QObject):
if os.path.exists(f):
self.selected_files.append(f)
if self.selected_files:
self.selected_files = [qstring_to_unicode(q) for q in self.selected_files]
settings.setValue(self.dialog_name, QVariant(os.path.dirname(self.selected_files[0])))
self.accepted = bool(self.selected_files)