Skip to content

Conversation

@in3otd
Copy link
Contributor

@in3otd in3otd commented Feb 1, 2020

Fix #949.
For some reason, closing an unmodified text document may trigger a signalFileChanged() (via the syntax highlighter) which in turn will run QucsApp::slotFileChanged(), which, if the text document Tab happened to be already removed, will cause DocumentTab->currentIndex() to point to the previous tab and setSaveIcon(), called by slotFileChanged() will wrongly change that tab icon instead of the (no longer present) text document tab icon.
So here I just disconnect signalFileChanged() before deleting the syntax highlighter of the text document.

as this my cause in the "tab modifed" icon handling
(see comments in textdoc.cpp)
@guitorri guitorri mentioned this pull request Feb 3, 2020
15 tasks
@in3otd in3otd added this to the 0.0.20 milestone Feb 3, 2020
@guitorri guitorri merged commit 80748d4 into Qucs:develop Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Closing a Text Document clears icon of previous Schematic Tab

2 participants