diff options
| author | Chirag Anand <[email protected]> | 2012-07-11 00:13:53 +0530 |
|---|---|---|
| committer | Chirag Anand <[email protected]> | 2012-07-11 00:13:53 +0530 |
| commit | cc03c5514c5f917e180c2fcb6b6b3ce991c774f8 (patch) | |
| tree | aa619d11550ec631c31795d6e39ca778062b2593 /src/views | |
| parent | d1963d22718380854d8a948f64bc5e0c4c8813d4 (diff) | |
Ask before opening more than 5 items.
Thanks to A JANARDHAN REDDY for the patch.
CCBUG: 54990
CCMAIL: [email protected]
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 7cfb3fc41..233c7007a 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -767,6 +767,14 @@ void DolphinView::slotItemsActivated(const QSet<int>& indexes) items.append(m_model->fileItem(index)); } + if (items.count() > 5) { + QString question = QString("Are you sure you want to open %1 items?").arg(items.count()); + const int answer = KMessageBox::warningYesNo(this, question); + if (answer != KMessageBox::Yes) { + return; + } + } + foreach (const KFileItem& item, items) { if (item.isDir()) { emit tabRequested(item.url()); |
