From 635d4b23416ecbed35256c1a206b85ae271318fb Mon Sep 17 00:00:00 2001 From: DatGuy1 Date: Thu, 14 Jun 2018 16:49:57 +0300 Subject: [PATCH] Fix minor userinfopopup moderator tool bugs fix weeks time, add days, clang formatting --- src/widgets/userinfopopup.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/widgets/userinfopopup.cpp b/src/widgets/userinfopopup.cpp index 2ef5a1f60..26bcb42d8 100644 --- a/src/widgets/userinfopopup.cpp +++ b/src/widgets/userinfopopup.cpp @@ -363,13 +363,21 @@ UserInfoPopup::TimeoutWidget::TimeoutWidget() addTimeouts("sec", {{"1", 1}}); addTimeouts("min", { - {"1", 1 * 60}, {"5", 5 * 60}, {"10", 10 * 60}, + {"1", 1 * 60}, + {"5", 5 * 60}, + {"10", 10 * 60}, }); addTimeouts("hour", { - {"1", 1 * 60 * 60}, {"4", 4 * 60 * 60}, + {"1", 1 * 60 * 60}, + {"4", 4 * 60 * 60}, + }); + addTimeouts("days", { + {"1", 1 * 60 * 60 * 24}, + {"3", 3 * 60 * 60 * 24}, }); addTimeouts("weeks", { - {"1", 1 * 60 * 60 * 30}, {"2", 2 * 60 * 60 * 30}, + {"1", 1 * 60 * 60 * 24 * 7}, + {"2", 2 * 60 * 60 * 24 * 7}, }); addButton(Ban, "ban", getApp()->resources->buttons.ban);