--- a/ProjectFlask/Project.py Thu Nov 12 19:43:14 2020 +0100 +++ b/ProjectFlask/Project.py Fri Nov 13 19:51:28 2020 +0100 @@ -212,8 +212,9 @@ """ Public method to handle the closing of a project. """ - if self.__serverDialog is not None: - self.__serverDialog.close() + for dlg in (self.__serverDialog, self.__routesDialog): + if dlg is not None: + dlg.close() ## if self.__serverProc is not None: ## self.__serverProcFinished() @@ -475,11 +476,10 @@ """ Private slot showing all URL dispatch routes. """ - # TODO: implement this (flask routes) if self.__routesDialog is not None: self.__routesDialog.close() - dlg = RoutesDialog() - if dlg.showRoutes(self): + dlg = RoutesDialog(self) + if dlg.showRoutes(): dlg.show() self.__routesDialog = dlg