summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_options.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-23 20:25:54 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-23 20:25:54 +0000
commit8e146597bbd27b72a42a3a197c1db17153e2e0b3 (patch)
tree52d5d578e44a50ac37966e37241fbd7a12fc05b9 /protocols/Tox/src/tox_options.cpp
parentff0c96de9a298089aa7239ecae4c35b2368cb371 (diff)
Tox: options fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@13796 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_options.cpp')
-rw-r--r--protocols/Tox/src/tox_options.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp
index 71cbb5fd7e..0023c60141 100644
--- a/protocols/Tox/src/tox_options.cpp
+++ b/protocols/Tox/src/tox_options.cpp
@@ -38,12 +38,6 @@ void CToxOptionsMain::OnInitDialog()
ShowWindow(m_profileExport.GetHwnd(), TRUE);
}
- if (m_proto->IsOnline())
- {
- EnableWindow(m_nickname.GetHwnd(), TRUE);
- EnableWindow(m_password.GetHwnd(), TRUE);
- }
-
SendMessage(m_toxAddress.GetHwnd(), EM_LIMITTEXT, TOX_ADDRESS_SIZE * 2, 0);
SendMessage(m_nickname.GetHwnd(), EM_LIMITTEXT, TOX_MAX_NAME_LENGTH, 0);
SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 32, 0);
@@ -164,15 +158,11 @@ void CToxOptionsMain::ProfileExport_OnClick(CCtrlButton*)
ofn.lpstrInitialDir = _T("%HOMEPATH%");
if (!GetSaveFileName(&ofn))
- {
return;
- }
std::tstring defaultProfilePath = m_proto->GetToxProfilePath();
if (mir_tstrcmpi(profilePath, defaultProfilePath.c_str()) != 0)
- {
CopyFile(defaultProfilePath.c_str(), profilePath, FALSE);
- }
}
void CToxOptionsMain::OnApply()