SVN_SILENT: silly "make it seem faster" obfuscatory code like this just sets my teeth on edge =) clarity is next to goddessliness

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773474
This commit is contained in:
Aaron J. Seigo 2008-02-11 06:07:14 +00:00
parent 123623d675
commit eb5e0658df

View File

@ -270,8 +270,8 @@ bool KCategorizedItemsViewDelegate::editorEvent(QEvent *event,
if (event->type() == QEvent::MouseButtonPress) {
KCategorizedItemsViewModels::AbstractItem * item = getItemByProxyIndex(index);
if (index.column() == 1) {
(m_onFavoriteIconItem = item)
->setFavorite(!item->isFavorite());
m_onFavoriteIconItem = item;
item->setFavorite(!item->isFavorite());
return true;
} else if (index.column() == 2 && item->running()) {
item->setRunning(0);