Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

set QSettings default format to QSettings.IniFormat

This causes the settings on Windows to be stored in ini files instead of
in the registry.

On my Windows 7 box, this currently causes the settings to be stored in
C:\Users\<username>\AppData\Roaming\TortoiseHg\TortoiseHgQt.ini

See also
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qsettings.html#platform-specific-notes

Changeset 3729ac795497

Parent 19b4839759a6

by Adrian Buehlmann

Changes to one file · Browse files at 3729ac795497 Showing diff from parent 19b4839759a6 Diff from another changeset...

 
18
19
20
21
 
22
23
24
 
305
306
307
 
 
308
309
310
 
18
19
20
 
21
22
23
24
 
305
306
307
308
309
310
311
312
@@ -18,7 +18,7 @@
 import subprocess  import traceback   -from PyQt4 import QtGui +from PyQt4 import QtCore, QtGui    import mercurial.ui as _ui  from mercurial import hg, util, fancyopts, cmdutil, extensions, error @@ -305,6 +305,8 @@
  dlg.show()   return   + QtCore.QSettings.setDefaultFormat(QtCore.QSettings.IniFormat) +   mainapp = QtGui.QApplication(sys.argv)   # default org is used by QSettings   mainapp.setApplicationName('TortoiseHgQt')