|
@ -8,7 +8,7 @@ class UnsavedMessageBox(QMessageBox): |
|
|
def __init__(self, fileName): |
|
|
def __init__(self, fileName): |
|
|
super().__init__() |
|
|
super().__init__() |
|
|
|
|
|
|
|
|
self.setIcon(QMessageBox.Question) |
|
|
|
|
|
|
|
|
self.setIcon(QMessageBox.Information) |
|
|
self.setWindowTitle("Unsaved changes") |
|
|
self.setWindowTitle("Unsaved changes") |
|
|
self.setText(f"The document \"{fileName}\" has been modified.") |
|
|
self.setText(f"The document \"{fileName}\" has been modified.") |
|
|
self.setInformativeText("Do you want to save your changes?") |
|
|
self.setInformativeText("Do you want to save your changes?") |
|
|