From: Peter Penz Date: Sun, 3 Aug 2008 10:10:07 +0000 (+0000) Subject: re-add assertions (have been accidentally removed by myself in the last commit) X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/e1b94daa88441ece7844a5fde1af411ebd6d281f re-add assertions (have been accidentally removed by myself in the last commit) svn path=/trunk/KDE/kdebase/apps/; revision=841432 --- diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 2f80682cc..e1cbaee8c 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -562,6 +562,8 @@ void DolphinView::renameSelectedItems() } } } else if (DolphinSettings::instance().generalSettings()->renameInline()) { + Q_ASSERT(itemCount == 1); + if (isColumnViewActive()) { m_columnView->editItem(items.first()); } else { @@ -570,6 +572,8 @@ void DolphinView::renameSelectedItems() itemView()->edit(proxyIndex); } } else { + Q_ASSERT(itemCount == 1); + RenameDialog dialog(this, items); if (dialog.exec() == QDialog::Rejected) { return;