┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorChirag Anand <[email protected]>2012-07-11 00:13:53 +0530
committerChirag Anand <[email protected]>2012-07-11 00:13:53 +0530
commitcc03c5514c5f917e180c2fcb6b6b3ce991c774f8 (patch)
treeaa619d11550ec631c31795d6e39ca778062b2593 /src/views
parentd1963d22718380854d8a948f64bc5e0c4c8813d4 (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.cpp8
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());