Swap tabs on tabbar so the first tab becomes 2.txt followed by 1.txt.
Type smth in 2.txt.
Expected behavior: tab caption of 2.txt changes to 2.txt* (with asterisk).
Real behavior: tab caption of 1.txt changes to 2.txt*.
This happens since Core::IDocument::changed signal handler captures tab index used at tab creation. When tabs are reordered by the user, this index becomes invalid but lambda still uses old captured value. I've prepared a simple fix for this issue, please review and apply it.
Steps to reproduce:
Expected behavior: tab caption of 2.txt changes to 2.txt* (with asterisk). Real behavior: tab caption of 1.txt changes to 2.txt*.
This happens since Core::IDocument::changed signal handler captures tab index used at tab creation. When tabs are reordered by the user, this index becomes invalid but lambda still uses old captured value. I've prepared a simple fix for this issue, please review and apply it.