~ubuntu-branches/ubuntu/precise/kde-baseapps/precise-proposed

« back to all changes in this revision

Viewing changes to dolphin/src/kitemviews/kitemlistselectionmanager.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-05-02 16:06:12 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20120502160612-v651qklaf50jhd32
Tags: 4:4.8.3-0ubuntu0.1
* New upstream release (LP: #1002336)
  - drop patches applied upstream:
    + Reduce-the-timeout-in-KItemListKeyboardSearchManager.patch
    + Fix-drag-drop-cursor-issue.patch
    + Revert-the-2.0-decision-to-always-use-KB-for-file-si.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
        // Calling setCurrentItem() would trigger the selectionChanged signal, but we want to
292
292
        // emit it only once in this function -> change the current item manually and emit currentChanged
293
293
        m_currentItem = indexAfterRangesRemoving(m_currentItem, itemRanges);
 
294
        if (m_currentItem != previousCurrent) {
 
295
            emit currentChanged(m_currentItem, previousCurrent);
 
296
        }
 
297
 
294
298
        if (m_currentItem < 0) {
 
299
            // The current item has been removed.
295
300
            m_currentItem = qMin(previousCurrent, m_model->count() - 1);
296
 
        }
297
 
        if (m_currentItem != previousCurrent) {
298
 
            emit currentChanged(m_currentItem, previousCurrent);
 
301
            emit currentChanged(m_currentItem, -1);
299
302
        }
300
303
    }
301
304