Nasty QSettings behavior for different Python versions fixed. Py2 comp.

Thu, 28 Mar 2013 20:09:00 +0100

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Thu, 28 Mar 2013 20:09:00 +0100
branch
Py2 comp.
changeset 2552
1e893ea4e366
parent 2551
d51f443e21f4
child 2571
e6bb19eb87ea

Nasty QSettings behavior for different Python versions fixed.

Preferences/__init__.py file | annotate | diff | comparison | revisions
diff -r d51f443e21f4 -r 1e893ea4e366 Preferences/__init__.py
--- a/Preferences/__init__.py	Thu Mar 28 17:01:05 2013 +0100
+++ b/Preferences/__init__.py	Thu Mar 28 20:09:00 2013 +0100
@@ -1113,6 +1113,9 @@
     QCoreApplication.setOrganizationName(settingsNameOrganization)
     QCoreApplication.setApplicationName(settingsNameGlobal)
     
+    # Avoid nasty behavior of QSettings in combination with Py2
+    Prefs.settings.value("UI/SingleApplicationMode")    
+    
 
 def syncPreferences(prefClass=Prefs):
     """

eric ide

mercurial