diff --git a/nw/gui/writingstats.py b/nw/gui/writingstats.py index 58c56516..d87d22df 100644 --- a/nw/gui/writingstats.py +++ b/nw/gui/writingstats.py @@ -369,7 +369,7 @@ class GuiWritingStats(QDialog): savePath = os.path.join(saveDir, fileName) savePath, _ = QFileDialog.getSaveFileName( - self, self.tr("Save Data As"), savePath + self, self.tr("Save Data As"), savePath, "%s (*.%s)" % (textFmt, fileExt) ) if not savePath: return False diff --git a/tests/test_gui/test_gui_dialogs.py b/tests/test_gui/test_gui_dialogs.py index f4f6f27d..239bd7b5 100644 --- a/tests/test_gui/test_gui_dialogs.py +++ b/tests/test_gui/test_gui_dialogs.py @@ -59,14 +59,3 @@ def testGuiDialogs_Quotes(qtbot, monkeypatch, nwGUI, nwMinimal): nwQuot.close() # END Test testDialogs_Quotes - -@pytest.mark.gui -def testGuiDialogs_Other(qtbot, monkeypatch, nwGUI, tmpDir): - """Various other dialog tests. - """ - monkeypatch.setattr(QFileDialog, "getExistingDirectory", lambda *args, **kwargs: tmpDir) - assert nwGUI.selectProjectPath() == tmpDir - - # qtbot.stopForInteraction() - -# END Test testGuiDialogs_Other