Fix some bugs with legend dialogs.


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/work/kst/portto4/kst@1358426 283d02a7-25f6-0310-bc7c-ecb5cbfe19da