New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After close project, open or create project fails #96
Comments
@olivierkes, the following patch is a work-in-progress as I do not yet know if it is the correct way to fix this issue. EDITED May 13, 2017: Patch Not Correct. See comments after patch. To create this patch I used a technique previously used in the code to work around TypeErrors for Characters. See manuskript/mainWindow.py - line 568 for the try and except handling example. The patch can be applied by copying the below text, pasting it into a file (say issue96-draft1.patch), and then applying with When I use this patch, I am able to close one project and then open another, all the while keeping the manuskript program running. Does this seem like the correct approach to this issue? Curtis Issue 96 Draft 1 Patch
Comment Added May 13, 2017: This patch either does not work correctly, or I have encountered another issue that causes Manuskript to crash. Following are the steps to recreate the segfault issue I encountered with Manuskript and the above patch applied:
The terminal output is as follows:
I think that it is more than coincidence that the crash occurred in updateSubPlotView because this was one of the connections that would invoke the TypeError: connection is not unique with the original develop branch without my draft 1 patch. |
Also fixes after open project, another open project fails See issue olivierkes#96. This change moves the signal & slot connections for three UI elements to the UI Startup code section which only assigns these connections once at program startup.
See issue olivierkes#96. This change moves the signal & slot connections for three UI elements to the UI Startup code section which only assigns these connections once at program startup.
See issue olivierkes#96. This change moves the signal & slot connections for three UI elements to the UI Startup code section which only assigns these connections once at program startup.
See issue olivierkes#96. This change creates a new class disconnectAll() to ensure that all connections are disconnected for a specific signal and slot. Now when a project is closed, the UI signals are disconnected. As before, these signals and slots are connected when a project is opened. Because Manuskript permits working on only one project at a time, the menu items for File Open and Recents are disabled after a project is loaded. These menu items are enabled when a project is closed. Prior to this commit, subsequent open project selections would complain with the following message: TypeError: connection is not unique
I merged your pull request, great work, thanks, |
After closing a project in Manuskript, a welcome window is shown prompting to either open an existing project or create a new project.
When I select a project type (for example Novel) and click Create a new project, I am prompted and then select a directory and filename. When I click save I am returned to the welcome window.
Following are the messages from the terminal in which I started manuskript:
A similar error message is shown if I try to open another existing project.
From the error message it appears that some stuff from the old project is not cleared out or initialized.
I am working with the latest May 8, 2017 develop branch:
To work around this issue:
The text was updated successfully, but these errors were encountered: