X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fnetworkmodelcontroller.cpp;h=020aaed4ae174cf8496b6b57f1f9672cba0aeb20;hb=a4251618e99c35f727c526f8480055d5a9c5e41f;hp=75e6e8efff848e0df70ec77369aac98766e77e42;hpb=846375c0a783fa99c0780a0d701ccb21e0bffd61;p=quassel.git
diff --git a/src/uisupport/networkmodelcontroller.cpp b/src/uisupport/networkmodelcontroller.cpp
index 75e6e8ef..020aaed4 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 += "
";
- foreach(BufferInfo info, inactive)
- msg += QString("- %1
").arg(info.bufferName());
+ int count = 0;
+ foreach(BufferInfo info, inactive) {
+ if(count < 10) {
+ msg += QString("- %1
").arg(info.bufferName());
+ count++;
+ }
+ else
+ break;
+ }
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.");
@@ -384,8 +393,8 @@ void NetworkModelController::handleNickAction(ActionType type, QAction *action)
case NickCtcpTime:
Client::userInput(bufferInfo, QString("/CTCP %1 TIME").arg(nick));
break;
- case NickCtcpFinger:
- Client::userInput(bufferInfo, QString("/CTCP %1 FINGER").arg(nick));
+ case NickCtcpClientinfo:
+ Client::userInput(bufferInfo, QString("/CTCP %1 CLIENTINFO").arg(nick));
break;
case NickOp:
Client::userInput(bufferInfo, QString("/OP %1").arg(nick));