diff --git a/nw/gui/build.py b/nw/gui/build.py index 6e571959..eb7a88e3 100644 --- a/nw/gui/build.py +++ b/nw/gui/build.py @@ -915,6 +915,9 @@ class GuiBuildNovel(QDialog): if theStatus: self.textFont.setText(theFont.family()) self.textSize.setValue(theFont.pointSize()) + + self.raise_() # Move the dialog to front (fixes a bug on macOS) + return def _loadCache(self): diff --git a/nw/gui/preferences.py b/nw/gui/preferences.py index ea475b70..a946c289 100644 --- a/nw/gui/preferences.py +++ b/nw/gui/preferences.py @@ -340,7 +340,7 @@ class GuiConfigEditGeneralTab(QWidget): dlgOpt = QFileDialog.Options() dlgOpt |= QFileDialog.ShowDirsOnly dlgOpt |= QFileDialog.DontUseNativeDialog - newDir = QFileDialog.getExistingDirectory( + newDir = QFileDialog.getExistingDirectory( self, "Backup Directory", currDir, options=dlgOpt ) if newDir: diff --git a/nw/gui/writingstats.py b/nw/gui/writingstats.py index c467615c..f748f95e 100644 --- a/nw/gui/writingstats.py +++ b/nw/gui/writingstats.py @@ -337,7 +337,7 @@ class GuiWritingStats(QDialog): saveTo = QFileDialog.getSaveFileName( self, "Save Document As", savePath, options=dlgOpt ) - if saveTo: + if saveTo[0]: savePath = saveTo[0] else: return False