~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy

« back to all changes in this revision

Viewing changes to kcontrol/input/xcursor/themepage.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-11 14:04:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071011140448-v0eb7lxbb24zagca
Tags: 3.94.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    int size = style()->pixelMetric(QStyle::PM_LargeIconSize);
74
74
 
75
75
    view->setModel(proxy);
76
 
    view->setItemDelegate(new ItemDelegate(this));      
 
76
    view->setItemDelegate(new ItemDelegate(this));
77
77
    view->setIconSize(QSize(size, size));
78
78
 
79
79
    // Make sure we find out about selection changes
180
180
 
181
181
void ThemePage::save()
182
182
{
183
 
    if (appliedIndex == view->currentIndex())
 
183
    if (appliedIndex == view->currentIndex() || !view->currentIndex().isValid())
184
184
        return;
185
185
 
186
186
    const CursorTheme *theme = proxy->theme(view->currentIndex());