From 5113bcdd3e25ae6a39b2573dabd9c79aa56ec4ea Mon Sep 17 00:00:00 2001
From: un1versal
Date: Sun, 10 Jul 2016 22:39:10 +0100
Subject: OptionWidget_*: having 0 is equivalent to turning this off (#2060)
also theres was a discrepancy between tooltip minimum value and actual
minimum value.---
src/modules/options/OptionsWidget_channel.cpp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
(limited to 'src/modules/options/OptionsWidget_channel.cpp')
diff --git a/src/modules/options/OptionsWidget_channel.cpp b/src/modules/options/OptionsWidget_channel.cpp
index 8af4afda0..4409b77a5 100644
--- a/src/modules/options/OptionsWidget_channel.cpp
+++ b/src/modules/options/OptionsWidget_channel.cpp
@@ -136,23 +136,22 @@ OptionsWidget_channelAdvanced::OptionsWidget_channelAdvanced(QWidget * pParent)
KviTalHBox * box = new KviTalHBox(g);
- u = addUIntSelector(box, __tr2qs_ctx("Paste up to:", "options"), KviOption_uintLinesToPasteOnChannelJoin, 0, 32767, 10, KVI_OPTION_BOOL(KviOption_boolPasteLastLogOnChannelJoin));
+ u = addUIntSelector(box, __tr2qs_ctx("Paste up to:", "options"), KviOption_uintLinesToPasteOnChannelJoin, 1, 32767, 10, KVI_OPTION_BOOL(KviOption_boolPasteLastLogOnChannelJoin));
u->setSuffix(__tr2qs_ctx(" lines", "options"));
- mergeTip(u, __tr2qs_ctx("Minimum value: 0 lines
Maximum value: 32767 lines", "options"));
+ mergeTip(u, __tr2qs_ctx("Minimum value: 1 lines
Maximum value: 32767 lines", "options"));
connect(b, SIGNAL(toggled(bool)), u, SLOT(setEnabled(bool)));
u = addUIntSelector(box, __tr2qs_ctx("Interval:", "options"), KviOption_uintDaysIntervalToPasteOnChannelJoin, 1, 3652, 10, KVI_OPTION_BOOL(KviOption_boolPasteLastLogOnChannelJoin));
u->setSuffix(__tr2qs_ctx(" days", "options"));
- mergeTip(u, __tr2qs_ctx("Minimum value: 0 days
Maximum value: 3652 days", "options"));
+ mergeTip(u, __tr2qs_ctx("Minimum value: 1 days
Maximum value: 3652 days", "options"));
connect(b, SIGNAL(toggled(bool)), u, SLOT(setEnabled(bool)));
b = addBoolSelector(0, 3, 4, 3, __tr2qs_ctx("Keep away list updated", "options"), KviOption_boolEnableAwayListUpdates);
mergeTip(b, __tr2qs_ctx("KVIrc sends out a channel /WHO message every now and then to keep the channel away list in sync. "
"Use this option to disable this feature (and to save your IRC bandwidth).
"
- "If the server supports IRCv3.1's away-notify extension, it will be used instead of WHO requests.",
- "options"));
+ "If the server supports IRCv3.1's away-notify extension, it will be used instead of WHO requests.", "options"));
addRowSpacer(0, 5, 4, 5);
}
--
cgit v1.3.1-10-gc9f91