Skip to content

Commit 7f43584

Browse files
authored
Merge bugfixes (#1009)
* Fix document margin recursion error (#1007) * Fix project file icon path in Windows installer (#1006)
1 parent 011291f commit 7f43584

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

novelwriter/gui/doceditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,8 +1061,8 @@ def resizeEvent(self, theEvent):
10611061
"""If the text editor is resized, we must make sure the document
10621062
has its margins adjusted according to user preferences.
10631063
"""
1064-
QTextEdit.resizeEvent(self, theEvent)
10651064
self.updateDocMargins()
1065+
QTextEdit.resizeEvent(self, theEvent)
10661066
return
10671067

10681068
##

novelwriter/gui/docviewer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,11 @@ def _openContextMenu(self, thePos):
471471
##
472472

473473
def resizeEvent(self, theEvent):
474-
"""Make sure the document title is the same width as the window.
474+
"""If the text editor is resized, we must make sure the document
475+
has its margins adjusted according to user preferences.
475476
"""
476-
QTextBrowser.resizeEvent(self, theEvent)
477477
self.updateDocMargins()
478+
QTextBrowser.resizeEvent(self, theEvent)
478479
return
479480

480481
def mouseReleaseEvent(self, theEvent):

setup/win_setup_embed.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ Filename: "{app}\pythonw.exe"; Parameters: "{#nwAppExeName}"; Description: "{cm
5151
[Registry]
5252
Root: HKA; Subkey: "Software\Classes\.nwx\OpenWithProgids"; ValueType: string; ValueName: "novelWriterProject.nwx"; ValueData: ""; Flags: uninsdeletevalue
5353
Root: HKA; Subkey: "Software\Classes\novelWriterProject.nwx"; ValueType: string; ValueName: ""; ValueData: "novelWriter Project File"; Flags: uninsdeletekey
54-
Root: HKA; Subkey: "Software\Classes\novelWriterProject.nwx\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\assets\icons\x-novelwriter-project.ico"
54+
Root: HKA; Subkey: "Software\Classes\novelWriterProject.nwx\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\novelwriter\assets\icons\x-novelwriter-project.ico"
5555
Root: HKA; Subkey: "Software\Classes\novelWriterProject.nwx\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\pythonw.exe"" ""{app}\{#nwAppExeName}"" ""%1"""
5656
Root: HKA; Subkey: "Software\Classes\Applications\{#nwAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".nwx"; ValueData: ""; Flags: uninsdeletekey

0 commit comments

Comments
 (0)