qt4: don't look currentItem when creating PLModel
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 18 Aug 2009 18:48:31 +0000 (21:48 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 18 Aug 2009 18:49:28 +0000 (21:49 +0300)
commit3fbe4e68d1565a77f71504e3ddf7f77f2692ec26
treef123ca640ade7f1b3b504495d6224ea1651397dd
parent0ec84ebbe8b2a13b60450f7dec8fa164d351aca8
qt4: don't look currentItem when creating PLModel

rebuild() does that and sets currentItem itself. Also emit
currentChanged on rebuild, so you stay on currentItem if you add/remove
columns on view.
modules/gui/qt4/components/playlist/playlist_model.cpp