El Dijous, 22 de novembre de 2012, a les 03:24:47, Christoph Feck va escriure:
> On Wednesday 21 November 2012 19:05:18 Julien wrote:
> > Hi,
> > 
> > This is a patch for the bug
> > https://bugs.kde.org/show_bug.cgi?id=296682
> > 
> > It prevents to make buttons as inactive after having deleted or
> > cutted an item.
> > 
> > Thus, this bug does not only concern the delete button after having
> > deleted an item, but also the following buttons : cut and copy,
> > after having deleted OR cutted an item.
> > 
> > It's my first patch submit :), I wanted to post it in the
> > ReviewBoard, but it seems that the Kmenuedit group does not exist.
> > 
> > Thanks
> 
> Thanks for the investigation. The patch is wrong, though.
> 
> In TreeView::itemSelected() the actions are explictely re-enabled. Due
> to a Qt3 -> Qt4 porting regression, the connection (see line 210), is
> wrong. To keep track of newly selected items, you should connect to
> "itemSelectionChanged", not "currentItemChanged" signal.
> 
> Also, the "setCurrentItem" calls are probably wrong, too. In Qt4,
> current != selected, so to reselect the next item after cut/delete,
> you have to use the overload that accepts the
> QItemSelectionModel::SelectionFlags command.

Have you actually tried the patched software? Becuase, yes you are right in 
all that you say, but i can't find any problem while using it, so I wouldn't 
say the patch is wrong.

Cheers,
  Albert

> 
> Christoph Feck (kdepepo)
> KDE Quality Team
> 
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
> >> <<

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to