diff --git a/Telegram/SourceFiles/boxes/photocropbox.cpp b/Telegram/SourceFiles/boxes/photocropbox.cpp index b16ffc3cec..5094514719 100644 --- a/Telegram/SourceFiles/boxes/photocropbox.cpp +++ b/Telegram/SourceFiles/boxes/photocropbox.cpp @@ -267,7 +267,11 @@ void PhotoCropBox::onSend() { iw = from.height() - iy; } int32 offset = ix * from.depth() / 8 + iy * from.bytesPerLine(); - QImage cropped(from.bits() + offset, iw, iw, from.bytesPerLine(), from.format()), tosend; + QImage cropped(from.constBits() + offset, iw, iw, from.bytesPerLine(), from.format()), tosend; + if (from.format() == QImage::Format_Indexed8) { + cropped.setColorCount(from.colorCount()); + cropped.setColorTable(from.colorTable()); + } if (cropped.width() > 1280) { tosend = cropped.scaled(1280, 1280, Qt::KeepAspectRatio, Qt::SmoothTransformation); } else if (cropped.width() < 320) { diff --git a/Telegram/SourceFiles/config.h b/Telegram/SourceFiles/config.h index 4cd25c8801..e8aa366243 100644 --- a/Telegram/SourceFiles/config.h +++ b/Telegram/SourceFiles/config.h @@ -20,9 +20,9 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org */ #pragma once -static const int32 AppVersion = 9009; -static const wchar_t *AppVersionStr = L"0.9.9"; -static const bool DevVersion = true; +static const int32 AppVersion = 9010; +static const wchar_t *AppVersionStr = L"0.9.10"; +static const bool DevVersion = false; static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)"; static const wchar_t *AppName = L"Telegram Desktop"; diff --git a/Telegram/SourceFiles/langs/lang_es.strings b/Telegram/SourceFiles/langs/lang_es.strings index 3401f9a950..c2d7a08c89 100644 --- a/Telegram/SourceFiles/langs/lang_es.strings +++ b/Telegram/SourceFiles/langs/lang_es.strings @@ -759,7 +759,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org "lng_new_version_wrap" = "Telegram Desktop ha sido actualizada a la versión {version}\n\n{changes}\n\nEl historial completo está disponible aquí:\n{link}"; "lng_new_version_minor" = "— Corrección de errores y otras mejoras menores"; -"lng_new_version_text" = "— Nueva sección para archivos de audio compartidos\n— Nuevo diseño en el menú\n— Añade comentarios a cualquier foto que envíes\n— Rodea el texto con el `acento grave` para una línea de código y ```acentos graves triples``` para un bloque de código\n— El acento gráfico, o tilde, ahora aparece correctamente"; +"lng_new_version_text" = "— Nueva sección para archivos de audio compartidos\n— Nuevo diseño en el menú\n— Añade comentarios a cualquier foto que envíes\n— Rodea el texto con el `acento grave` para una línea de código y ```acentos graves triples``` para bloques de código\n— El acento gráfico, o tilde, ahora aparece correctamente"; "lng_menu_insert_unicode" = "Insertar caracteres de control Unicode"; diff --git a/Telegram/SourceFiles/langs/lang_pt_BR.strings b/Telegram/SourceFiles/langs/lang_pt_BR.strings index 7d12522f96..e473b60baa 100644 --- a/Telegram/SourceFiles/langs/lang_pt_BR.strings +++ b/Telegram/SourceFiles/langs/lang_pt_BR.strings @@ -79,8 +79,8 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org "lng_status_service_notifications" = "notificações de serviço"; "lng_status_support" = "suporte"; "lng_status_bot" = "bot"; -"lng_status_bot_reads_all" = "tem acesso as mensagens"; -"lng_status_bot_not_reads_all" = "não tem acesso as mensagens"; +"lng_status_bot_reads_all" = "tem acesso às mensagens"; +"lng_status_bot_not_reads_all" = "não tem acesso às mensagens"; "lng_status_offline" = "visto há muito tempo"; "lng_status_recently" = "visto recentemente"; "lng_status_last_week" = "visto há uma semana"; @@ -132,7 +132,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org "lng_code_ph" = "Código"; "lng_code_desc" = "Enviamos uma SMS com um código de ativação\npara o seu telefone. Insira-o abaixo."; -"lng_code_telegram" = "Por favor insira código recebido\nem seu aplicativo prévio do [b]Telegram[/b]"; +"lng_code_telegram" = "Por favor, insira o código recebido\nem seu aplicativo prévio do [b]Telegram[/b]"; "lng_code_no_telegram" = "Enviar código via SMS"; "lng_code_call" = "Telegram irá te ligar em {minutes}{seconds}"; "lng_code_calling" = "Aguardando a ligação do Telegram.."; @@ -146,7 +146,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org "lng_signin_title" = "Verificar senha"; "lng_signin_desc" = "Por favor, insira sua senha."; -"lng_signin_recover_desc" = "Por favor insira o código enviado por e-mail."; +"lng_signin_recover_desc" = "Por favor, insira o código enviado por e-mail."; "lng_signin_password" = "Sua senha"; "lng_signin_code" = "Código do e-mail"; "lng_signin_recover" = "Esqueceu sua senha?"; @@ -160,7 +160,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org "lng_signin_no_email_forgot" = "Se você não providenciar um e-mail\nde recuperação ao configurar sua senha, suas opções restantes serão lembrar sua senha ou apagar sua conta."; "lng_signin_cant_email_forgot" = "Se você não pode restaurar o acesso ao e-mail, suas opções restantes serão lembrar sua senha ou apagar sua conta."; "lng_signin_reset_account" = "Apagar sua conta"; -"lng_signin_sure_reset" = "Atenção!\n\nVocê perderá todos seus chats e mensagens, juntamente com qualquer mídias e arquivos!\n\nVocê deseja apagar sua conta?"; +"lng_signin_sure_reset" = "Atenção!\n\nVocê perderá todos seus chats e mensagens, juntamente com quaisquer mídias e arquivos!\n\nVocê deseja apagar sua conta?"; "lng_signin_reset" = "Apagar"; "lng_signup_title" = "Informação e foto"; @@ -284,9 +284,9 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org "lng_passcode_create" = "Senha de bloqueio"; "lng_passcode_remove" = "Remover senha de bloqueio"; "lng_passcode_turn_off" = "Desativar"; -"lng_passcode_autolock" = "Auto-bloquear"; -"lng_passcode_autolock_away" = "Auto-bloquear se ausente por:"; -"lng_passcode_autolock_inactive" = "Auto-bloquear se inativo por:"; +"lng_passcode_autolock" = "Autobloquear"; +"lng_passcode_autolock_away" = "Autobloquear se ausente por:"; +"lng_passcode_autolock_inactive" = "Autobloquear se inativo por:"; "lng_passcode_autolock_minutes" = "{count:_not_used_|# minuto|# minutos}"; "lng_passcode_autolock_hours" = "{count:_not_used_|# hora|# horas}"; "lng_passcode_enter_old" = "Insira sua senha atual"; @@ -552,7 +552,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org "lng_stickers_add_pack" = "Adicionar aos Stickers"; "lng_stickers_share_pack" = "Compartilhar Stickers"; "lng_stickers_not_found" = "Pacote de sticker não encontrado."; -"lng_stickers_copied" = "Link copiado para a àrea de transferência."; +"lng_stickers_copied" = "Link copiado para a área de transferência."; "lng_stickers_default_set" = "Grandes Mentes"; "lng_in_dlg_photo" = "Foto"; @@ -758,7 +758,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org "lng_new_authorization" = "{name},\nDetectamos um acesso à sua conta de um novo dispositivo em {day}, {date} às {time}\n\nDispositivo: {device}\nLocalização: {location}\n\nCaso não tenha sido você, vá em Configurações – Mostrar todas as sessões e terminar essa sessão.\n\nSe você acha que alguém entrou em sua conta, você pode ativar a verificação em duas etapas nas Configurações.\n\nObrigado,\nEquipe Telegram"; "lng_new_version_wrap" = "Telegram Desktop foi atualizado para a versão {version}\n\n{changes}\n\nHistórico completo de mudanças disponível aqui:\n{link}"; -"lng_new_version_minor" = "— Resolução de bugs e outras menores melhorias"; +"lng_new_version_minor" = "— Resolução de bugs e outras melhorias menores"; "lng_new_version_text" = "— Nova sessão de áudios compartilhados\n— Novo design para menus popup\n— Adicione legendas em qualquer foto que enviar\n— Alinhe o texto com `backticks` únicos para código monowidth e ```backticks``` triplo para blocos de código\n— O símbolo til agora aparece corretamente"; "lng_menu_insert_unicode" = "Inserir caractere de controle Unicode"; diff --git a/Telegram/SourceFiles/mtproto/mtpSession.cpp b/Telegram/SourceFiles/mtproto/mtpSession.cpp index 4c1495f2c3..ddb3a8db8b 100644 --- a/Telegram/SourceFiles/mtproto/mtpSession.cpp +++ b/Telegram/SourceFiles/mtproto/mtpSession.cpp @@ -155,7 +155,7 @@ void MTProtoSession::kill() { void MTProtoSession::unpaused() { if (_needToReceive) { _needToReceive = false; - tryToReceive(); + QTimer::singleShot(0, this, SLOT(tryToReceive())); } } diff --git a/Telegram/Telegram.plist b/Telegram/Telegram.plist index 217a1bf819..7488de69f4 100644 --- a/Telegram/Telegram.plist +++ b/Telegram/Telegram.plist @@ -11,7 +11,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.9.9 + 0.9.10 CFBundleSignature ???? CFBundleURLTypes diff --git a/Telegram/Telegram.rc b/Telegram/Telegram.rc index d575f5cc74..7ae49297bb 100644 Binary files a/Telegram/Telegram.rc and b/Telegram/Telegram.rc differ diff --git a/Telegram/Telegram.xcodeproj/project.pbxproj b/Telegram/Telegram.xcodeproj/project.pbxproj index 06775ca77d..7baa0b450e 100644 --- a/Telegram/Telegram.xcodeproj/project.pbxproj +++ b/Telegram/Telegram.xcodeproj/project.pbxproj @@ -1687,7 +1687,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 0.9.9; + CURRENT_PROJECT_VERSION = 0.9.10; DEBUG_INFORMATION_FORMAT = dwarf; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_OPTIMIZATION_LEVEL = 0; @@ -1706,7 +1706,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; COPY_PHASE_STRIP = YES; - CURRENT_PROJECT_VERSION = 0.9.9; + CURRENT_PROJECT_VERSION = 0.9.10; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_OPTIMIZATION_LEVEL = fast; GCC_PREFIX_HEADER = ./SourceFiles/stdafx.h; @@ -1733,10 +1733,10 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = ""; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 0.9.9; + CURRENT_PROJECT_VERSION = 0.9.10; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DYLIB_COMPATIBILITY_VERSION = 0.9; - DYLIB_CURRENT_VERSION = 0.9.9; + DYLIB_CURRENT_VERSION = 0.9.10; ENABLE_STRICT_OBJC_MSGSEND = YES; FRAMEWORK_SEARCH_PATHS = ""; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; @@ -1867,10 +1867,10 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = ""; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 0.9.9; + CURRENT_PROJECT_VERSION = 0.9.10; DEBUG_INFORMATION_FORMAT = dwarf; DYLIB_COMPATIBILITY_VERSION = 0.9; - DYLIB_CURRENT_VERSION = 0.9.9; + DYLIB_CURRENT_VERSION = 0.9.10; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; FRAMEWORK_SEARCH_PATHS = ""; diff --git a/Telegram/Version b/Telegram/Version index 56cc933dd6..a98853f34e 100644 --- a/Telegram/Version +++ b/Telegram/Version @@ -1,5 +1,5 @@ -AppVersion 9009 +AppVersion 9010 AppVersionStrMajor 0.9 -AppVersionStrSmall 0.9.9 -AppVersionStr 0.9.9 -DevChannel 1 +AppVersionStrSmall 0.9.10 +AppVersionStr 0.9.10 +DevChannel 0