Skip to content

Commit cf8ed36

Browse files
committed
Windows Qt refactoring fix
1 parent 066b419 commit cf8ed36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/bitmessageqt/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def __init__(self, parent=None):
598598
if 'win32' in sys.platform or 'win64' in sys.platform:
599599
# Auto-startup for Windows
600600
RUN_PATH = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run"
601-
self.settings = QSettings(RUN_PATH, QSettings.NativeFormat)
601+
self.settings = QtCore.QSettings(RUN_PATH, QtCore.QSettings.NativeFormat)
602602
self.settings.remove(
603603
"PyBitmessage") # In case the user moves the program and the registry entry is no longer valid, this will delete the old registry entry.
604604
if BMConfigParser().getboolean('bitmessagesettings', 'startonlogon'):
@@ -2546,7 +2546,7 @@ def click_actionSettings(self):
25462546
if 'win32' in sys.platform or 'win64' in sys.platform:
25472547
# Auto-startup for Windows
25482548
RUN_PATH = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run"
2549-
self.settings = QSettings(RUN_PATH, QSettings.NativeFormat)
2549+
self.settings = QtCore.QSettings(RUN_PATH, QtCore.QSettings.NativeFormat)
25502550
if BMConfigParser().getboolean('bitmessagesettings', 'startonlogon'):
25512551
self.settings.setValue("PyBitmessage", sys.argv[0])
25522552
else:

0 commit comments

Comments
 (0)