Skip to content

Commit

Permalink
Fixed a minor bug in the Preferences dialog.
Browse files Browse the repository at this point in the history
Also the fictitious bug fix for Logger added in fe65771 has been undone.
I've just realized that the Logger checkbox in the toolbars menu does
the job :-)
  • Loading branch information
uvemas committed Jun 7, 2017
1 parent 8d50ebe commit 8abb6ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ViTables ChangeLog
==================
** June 07, 2017 **
Fixed a minor bug in the Preferences dialog.

** June 06, 2017 **
The plugins system has been slightly refactored and simplified.

Expand Down
3 changes: 3 additions & 0 deletions vitables/preferences/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ def __init__(self):
# Setup the page selector widget
self.setupSelector()

# Display the General Settings page
self.stackedPages.setCurrentIndex(0)

# Style names can be retrieved with qt.QStyleFactory.keys()
styles = QtWidgets.QStyleFactory.keys()
self.stylesCB.insertItems(0, styles)
Expand Down
8 changes: 0 additions & 8 deletions vitables/vtapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,14 +697,6 @@ def fileExit(self):
Saves current configuration on disk, closes opened files and exits.
"""

# Because configuration is always restored from the previous session
# we have to be careful with the Logger and make sure that it is neither
# closed nor floated
if not self.gui.logger_dock.isVisible():
self.gui.logger_dock.setVisible(True)
if self.gui.logger_dock.isFloating():
self.gui.logger_dock.setFloating(False)

# Close all browsers
if self.doc_browser:
self.doc_browser.exitBrowser()
Expand Down

0 comments on commit 8abb6ee

Please sign in to comment.