Fix layout margins and z-order of some dialogs (#834)
* Fix layout margins on paged dialogs * Make sure non-modal dialogs are only shown once and are on top
This commit is contained in:
committed by
GitHub
parent
732450e163
commit
b517276156
+12
-2
@@ -1002,9 +1002,13 @@ class GuiMain(QMainWindow):
|
||||
|
||||
self.treeView.flushTreeOrder()
|
||||
|
||||
dlgDetails = GuiProjectDetails(self)
|
||||
dlgDetails = getGuiItem("GuiProjectDetails")
|
||||
if dlgDetails is None:
|
||||
dlgDetails = GuiProjectDetails(self)
|
||||
|
||||
dlgDetails.setModal(False)
|
||||
dlgDetails.show()
|
||||
dlgDetails.raise_()
|
||||
|
||||
return
|
||||
|
||||
@@ -1021,6 +1025,7 @@ class GuiMain(QMainWindow):
|
||||
|
||||
dlgBuild.setModal(False)
|
||||
dlgBuild.show()
|
||||
dlgBuild.raise_()
|
||||
qApp.processEvents()
|
||||
dlgBuild.viewCachedDoc()
|
||||
|
||||
@@ -1055,6 +1060,7 @@ class GuiMain(QMainWindow):
|
||||
|
||||
dlgStats.setModal(False)
|
||||
dlgStats.show()
|
||||
dlgStats.raise_()
|
||||
qApp.processEvents()
|
||||
dlgStats.populateGUI()
|
||||
|
||||
@@ -1063,9 +1069,13 @@ class GuiMain(QMainWindow):
|
||||
def showAboutNWDialog(self, showNotes=False):
|
||||
"""Show the about dialog for novelWriter.
|
||||
"""
|
||||
dlgAbout = GuiAbout(self)
|
||||
dlgAbout = getGuiItem("GuiAbout")
|
||||
if dlgAbout is None:
|
||||
dlgAbout = GuiAbout(self)
|
||||
|
||||
dlgAbout.setModal(True)
|
||||
dlgAbout.show()
|
||||
dlgAbout.raise_()
|
||||
qApp.processEvents()
|
||||
dlgAbout.populateGUI()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user