Skip to content

Commit

Permalink
gui: lyric font dialog may cause app crash (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven authored Oct 26, 2023
1 parent 4db5fd4 commit 7a24530
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feeluown/gui/uimain/lyric.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ def set_color(color):
dialog.open()

def show_font_dialog(self):
dialog = QFontDialog(self.font())
dialog = QFontDialog(self.font(), self)
# Set WA_DeleteOnClose so that the dialog can be deleted (from self.children).
dialog.setAttribute(Qt.WA_DeleteOnClose)
dialog.currentFontChanged.connect(self.setFont)
dialog.fontSelected.connect(self.setFont)
Expand Down

0 comments on commit 7a24530

Please sign in to comment.