Commit ecb2715e authored by Chirag Anand's avatar Chirag Anand

Ask before opening more than 5 items.

Thanks to A JANARDHAN REDDY for the patch.
CCBUG: 54990
CCMAIL: annapareddyjanardhanreddy@gmail.com
parent 9940244d
......@@ -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());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment