[Fix] Save File Bug
Added double semicolons where needed #typofix
This commit is contained in:
@@ -123,7 +123,7 @@ class MainWindow(QMainWindow):
|
|||||||
dlg.show()
|
dlg.show()
|
||||||
|
|
||||||
def file_open(self):
|
def file_open(self):
|
||||||
path, _ = QFileDialog.getOpenFileName(self, "Open file", "", "Text documents (*.txt);All files (*.*)")
|
path, _ = QFileDialog.getOpenFileName(self, "Open file", "", "Text documents (*.txt);;All files (*.*)")
|
||||||
|
|
||||||
if path:
|
if path:
|
||||||
try:
|
try:
|
||||||
@@ -146,7 +146,7 @@ class MainWindow(QMainWindow):
|
|||||||
self._save_to_path(self.path)
|
self._save_to_path(self.path)
|
||||||
|
|
||||||
def file_saveas(self):
|
def file_saveas(self):
|
||||||
path, _ = QFileDialog.getSaveFileName(self, "Save file", "", "Text documents (*.txt);All files (*.*)")
|
path, _ = QFileDialog.getSaveFileName(self, "Save file", "", "Text documents (*.txt);;All files (*.*)")
|
||||||
|
|
||||||
if not path:
|
if not path:
|
||||||
# If dialog is cancelled, will return ''
|
# If dialog is cancelled, will return ''
|
||||||
@@ -185,4 +185,4 @@ if __name__ == '__main__':
|
|||||||
app.setApplicationName("No2Pads")
|
app.setApplicationName("No2Pads")
|
||||||
|
|
||||||
window = MainWindow()
|
window = MainWindow()
|
||||||
app.exec_()
|
app.exec_()
|
||||||
|
|||||||
Reference in New Issue
Block a user