diff options
| author | Eduardo Robles Elvira <[email protected]> | 2008-02-21 09:55:08 +0000 |
|---|---|---|
| committer | Eduardo Robles Elvira <[email protected]> | 2008-02-21 09:55:08 +0000 |
| commit | c73591380173b52504aaceb74314f617b2e04f6c (patch) | |
| tree | ac9d911d914b5a4d84fd782a9a26f8f798d8f6e8 /src/dolphiniconsview.cpp | |
| parent | ea5e9196b28b5289162186b4d82b823d0b1d148e (diff) | |
Bugfix: Currently, if you open dolphin, select a bunch of files, and right click and
select Open With > whatever, all the files are opened. Which is the right
thing. However, if you hit enter to open those selected files, no file is
opened. Currently, the file is only opened if there's only *one* file
selected. The attached patch fixes this problem.
svn path=/trunk/KDE/kdebase/apps/; revision=777695
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 96f69436d..b1ffd401c 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -297,9 +297,15 @@ void DolphinIconsView::keyPressEvent(QKeyEvent* event) const QModelIndex currentIndex = selModel->currentIndex(); const bool trigger = currentIndex.isValid() && (event->key() == Qt::Key_Return) - && (selModel->selectedIndexes().count() <= 1); - if (trigger) { - triggerItem(currentIndex); + && (selModel->selectedIndexes().count() > 0); + if(trigger) { + const QModelIndexList indexList = selModel->selectedIndexes(); + foreach (const QModelIndex &index, indexList) { + KFileItem item = itemForIndex(index); + if (!item.isNull()) { + triggerItem(index); + } + } } } |
