Am Sonntag, den 17.11.2019, 19:50 +0100 schrieb pdv: > In addPB_clicked() the idx is only used in one place and it’s > definition > can be moved. In upPB_clicked() and downPB_clicked() I first made idx > of > type QPersistentModelIndex and this avoids the crashes but the > selection > is lost when moving an item up/down. > > I then redefined idx before the 2nd use and removed the > selectionChanged() signals and this avoids the crashes and keeps the > selection intact (patch included).
Thanks. Are you sure the selectionChanged() signal does not need to be emitted? Jürgen > > P. De Visschere
signature.asc
Description: This is a digitally signed message part
-- lyx-devel mailing list [email protected] http://lists.lyx.org/mailman/listinfo/lyx-devel
