diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/IRCG/src/options.cpp | 9 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_opt.cpp | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp index 93194bcf6b..5583fcb699 100644 --- a/protocols/IRCG/src/options.cpp +++ b/protocols/IRCG/src/options.cpp @@ -742,9 +742,6 @@ public: void OnPerformCombo(CCtrlData *)
{
PERFORM_INFO *pPerf = (PERFORM_INFO *)m_performCombo.GetCurData();
- if (pPerf == INVALID_HANDLE_VALUE)
- return;
-
if (pPerf == nullptr)
m_pertormEdit.SetTextA("");
else
@@ -787,9 +784,6 @@ public: MessageBox(nullptr, TranslateT("The usage of /AWAY in your perform buffer is restricted\n as IRC sends this command automatically."), TranslateT("IRC Error"), MB_OK);
else {
PERFORM_INFO *pPerf = (PERFORM_INFO *)m_performCombo.GetCurData();
- if (pPerf == INVALID_HANDLE_VALUE)
- return;
-
if (pPerf != nullptr)
pPerf->mText = temp;
@@ -801,9 +795,6 @@ public: void OnDelete(CCtrlButton *)
{
PERFORM_INFO *pPerf = (PERFORM_INFO *)m_performCombo.GetCurData();
- if (pPerf == INVALID_HANDLE_VALUE)
- return;
-
if (pPerf != nullptr) {
pPerf->mText = L"";
m_pertormEdit.SetTextA("");
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index 016ec1efbf..b1cd46297f 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -482,7 +482,7 @@ protected: m_proto->delSetting("Password");
char *szLanguageCode = (char *)m_cbLocale.GetCurData();
- if (szLanguageCode && szLanguageCode != INVALID_HANDLE_VALUE) {
+ if (szLanguageCode) {
m_proto->setString("XmlLang", szLanguageCode);
replaceStr(m_proto->m_tszSelectedLang, szLanguageCode);
}
|