Fixed typo in enum
This commit is contained in:
+1
-1
@@ -514,7 +514,7 @@ class GuiDocEditor(QTextEdit):
|
||||
self.copy()
|
||||
elif theAction == nwDocAction.PASTE:
|
||||
self.paste()
|
||||
elif theAction == nwDocAction.ENPH:
|
||||
elif theAction == nwDocAction.EMPH:
|
||||
self._toggleEmph(1)
|
||||
elif theAction == nwDocAction.STRONG:
|
||||
self._toggleEmph(2)
|
||||
|
||||
+1
-1
@@ -530,7 +530,7 @@ class GuiMainMenu(QMenuBar):
|
||||
self.aFmtEmph = QAction("Emphasis", self)
|
||||
self.aFmtEmph.setStatusTip("Add emphasis to selected text (italic)")
|
||||
self.aFmtEmph.setShortcut("Ctrl+I")
|
||||
self.aFmtEmph.triggered.connect(lambda: self._docAction(nwDocAction.ENPH))
|
||||
self.aFmtEmph.triggered.connect(lambda: self._docAction(nwDocAction.EMPH))
|
||||
self.fmtMenu.addAction(self.aFmtEmph)
|
||||
|
||||
# Format > Strong Emphasis
|
||||
|
||||
Reference in New Issue
Block a user