Remove hard line break menu entry
This commit is contained in:
+1
-3
@@ -840,9 +840,7 @@ class GuiDocEditor(QTextEdit):
|
||||
if isinstance(theInsert, str):
|
||||
theText = theInsert
|
||||
elif isinstance(theInsert, nwDocInsert):
|
||||
if theInsert == nwDocInsert.HARD_BREAK:
|
||||
theText = " \n"
|
||||
elif theInsert == nwDocInsert.QUOTE_LS:
|
||||
if theInsert == nwDocInsert.QUOTE_LS:
|
||||
theText = self._typSQOpen
|
||||
elif theInsert == nwDocInsert.QUOTE_RS:
|
||||
theText = self._typSQClose
|
||||
|
||||
+2
-9
@@ -634,15 +634,8 @@ class GuiMainMenu(QMenuBar):
|
||||
self.aInsDPrime.triggered.connect(lambda: self._docInsert(nwUnicode.U_DPRIME))
|
||||
self.mInsPunct.addAction(self.aInsDPrime)
|
||||
|
||||
# Insert > Breaks and Spaces
|
||||
self.mInsBreaks = self.insertMenu.addMenu(self.tr("Breaks and Spaces"))
|
||||
|
||||
# Insert > Hard Line Break
|
||||
self.aInsHardBreak = QAction(self.tr("Hard Line Break"), self)
|
||||
self.aInsHardBreak.setStatusTip(self.tr("Insert a hard line break"))
|
||||
self.aInsHardBreak.setShortcut("Ctrl+K, Return")
|
||||
self.aInsHardBreak.triggered.connect(lambda: self._docInsert(nwDocInsert.HARD_BREAK))
|
||||
self.mInsBreaks.addAction(self.aInsHardBreak)
|
||||
# Insert > White Spaces
|
||||
self.mInsBreaks = self.insertMenu.addMenu(self.tr("White Spaces"))
|
||||
|
||||
# Insert > Non-Breaking Space
|
||||
self.aInsNBSpace = QAction(self.tr("Non-Breaking Space"), self)
|
||||
|
||||
Reference in New Issue
Block a user