From c0952944e11623170024362f8317aae0cc453a63 Mon Sep 17 00:00:00 2001 From: Johannes Huber Date: Tue, 2 Mar 2010 22:14:41 +0100 Subject: [PATCH] added max count to delete confirm dialog --- src/uisupport/networkmodelcontroller.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/uisupport/networkmodelcontroller.cpp b/src/uisupport/networkmodelcontroller.cpp index 75e6e8ef..111e1c30 100644 --- a/src/uisupport/networkmodelcontroller.cpp +++ b/src/uisupport/networkmodelcontroller.cpp @@ -153,9 +153,18 @@ void NetworkModelController::removeBuffers(const QModelIndexList &indexList) { if(inactive.count()) { msg = tr("Do you want to delete the following buffer(s) permanently?", 0, inactive.count()); msg += ""; + if(count > 9 && inactive.size() - count != 0) + msg += tr("...and %1 more

").arg(inactive.size() - count); msg += tr("Note: This will delete all related data, including all backlog data, from the core's database and cannot be undone."); if(inactive.count() != indexList.count()) msg += tr("
Active channel buffers cannot be deleted, please part the channel first."); -- 2.20.1