Added exit yes/no dialog

This commit is contained in:
Veronica K. B. Olsen
2019-05-25 19:59:43 +02:00
parent f986325f4e
commit 9dd956bc92
3 changed files with 21 additions and 7 deletions
+2 -3
View File
@@ -13,7 +13,7 @@
import logging
import nw
from PyQt5.QtWidgets import qApp, QMenuBar, QAction, QMessageBox
from PyQt5.QtWidgets import QMenuBar, QAction, QMessageBox
from PyQt5.QtGui import QIcon
from nw.enum import nwItemType, nwItemClass, nwDocAction
@@ -91,8 +91,7 @@ class GuiMainMenu(QMenuBar):
def _menuExit(self):
self.theParent.closeMain()
qApp.quit()
return True
return
def _toggleSpellCheck(self):
self.theProject.setSpellCheck(self.toolsSpellCheck.isChecked())