From 8e146597bbd27b72a42a3a197c1db17153e2e0b3 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 23 May 2015 20:25:54 +0000 Subject: Tox: options fix git-svn-id: http://svn.miranda-ng.org/main/trunk@13796 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_options.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'protocols/Tox/src/tox_options.cpp') 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() -- cgit v1.2.3