1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
Commit Graph

2932 Commits

Author SHA1 Message Date
Maxim Biro
4e5b191553 fix(core): use correct byte representation when bootstrapping
Revert a bug introduced in d126b18d76
where qTox calls tox_bootstrap() and tox_add_relay() with an invalid
argument, which results in qTox not connecting to the bootstrap nodes
from its list of bootsrap nodes and therefore failing to connect to the
Tox DHT network in the case when that list is the only source of nodes
to connect to. The invalid argument is node's public key, which is
non-nullable but is passed a null due to invalid ToxPk object being
constructed. ToxPk's constructor expects the QByteArray argument to be
the byte representation of a public key, but a textual representation
is passed to it instead, which creats an invalid ToxPk that resolves to
null when queried for public key's bytes for calls to  tox_bootstrap()
and tox_add_relay().

Fixes #4385
2017-05-11 17:19:28 -04:00
Jerome Pinguet
71a838b53e
fix(profile): set maxLength on userName QLineEdit
Set maxLength of userName QLineEdit to TOX_MAX_NAME_LENGTH
Fixes #4335
2017-05-09 07:28:31 +02:00
Diadlo
a913f150e1
Merge pull request #4381
Yuri (1):
      fix(macro): Fixed clang warning about USING_V4L
2017-05-08 23:40:48 +03:00
Diadlo
eacdafff5f
refactor(group): Changed Group flags types to bool 2017-05-08 22:39:00 +03:00
Diadlo
8634e26694
refactor: Methods renamed
existsFriendWidget -> friendWidgetExists
existsGroupWidget -> groupWidgetExists
2017-05-08 22:39:00 +03:00
Diadlo
4afd13839a
refactor(toxuri): Add using GUI to show warning 2017-05-08 22:36:13 +03:00
Diadlo
b126d21922
refactor(core): Merge friendAdded and friendshipChanged 2017-05-08 22:12:14 +03:00
Diadlo
49e9eb8de2
refactor(core): Move saving request to history to Profile 2017-05-08 22:12:14 +03:00
Diadlo
b25f5b5ed6
fix(core): Add action message with friend request text 2017-05-08 22:12:14 +03:00
Diadlo
d77cb084d6
refactor: Remove unused MicFeedback widget 2017-05-08 22:11:41 +03:00
Yuri
dd59f5ee90 fix(macro): Fixed clang warning about USING_V4L
Clang produced this warning:
"macro expansion producing 'defined' has undefined behavior"
2017-05-08 09:28:29 -07:00
Diadlo
7e3ad7ba87
refactor(chatform): Remove Audio dependencies from ChatForm 2017-05-08 14:12:45 +03:00
Diadlo
695abadd7c
refactor(chatform): Remove Audio::play usage from ChatForm 2017-05-08 14:12:45 +03:00
sudden6
28c2298ad9
feat(audio): split the audio interface from the backend library
This paves the way to support multiple audio backends
2017-05-08 10:37:05 +02:00
sudden6
13029e3047
fix(groupinvite): prevent multiple groupinvites to the same group from showing up
fix #2305
2017-05-07 17:08:02 +02:00
sudden6
c41f533818
Merge pull request #4340
ezavod (1):
      fix(settings): changing language sets title to "Add Friend"
2017-05-07 16:08:06 +02:00
sudden6
407413c65b
fix(core): add missing nullptr check
fix #4324
2017-05-07 01:03:35 +02:00
sudden6
6a6e30d639
fix(settings): remove legacy code 2017-05-06 15:21:37 +02:00
Diadlo
5d117e6af8
refactor: Remove getCompactLayout from GenericChatroomWidget 2017-05-04 20:31:56 +03:00
Diadlo
5feb81d757
refactor(translator): Remove Settings from Translator 2017-05-04 20:31:56 +03:00
Diadlo
7d3020cba3
refactor(IPC): Remove IPC singlton 2017-05-04 20:31:56 +03:00
Diadlo
f11860680b
refactor(IPC): Remove Settings from IPC 2017-05-04 20:31:56 +03:00
Diadlo
b3015ab0a8
refactor(friend): Remove Settings from Friend 2017-05-04 20:31:54 +03:00
Zetok Zalbavar
0192e9275f
feat(l10n): add Romanian translation to UI 2017-04-30 20:18:02 +01:00
noavarice
b5f4628c89 fix: fix segfault while trying to send messages
Unfortunately, can not pass local variable on ChatLine::Ptr through
several method calls so ChatMessage inserted after its creating in the
same scope. Updated docs
2017-04-26 14:30:22 +03:00
noavarice
4b3d86d172 refactor: another small changes
Brief list of changes:
  - "resolveToxId" method's name replaced with "resolveToxPk";
  - updated comments for "resolveToxPk" and "needsToHideName";
  - changed "resolveToxPk" return value for fail case;
  - fixed typo.
2017-04-25 22:09:38 +03:00
alexrazinkov
972c3f2353 refactor: another refactoring step
Brief list of changes:
  - contentdialog.* and friendlistwidget.cpp reverted to their previous states;
  - added macros for setting stylesheets for form components;
  - added 'static' qualificator for 'fontToCss' function;
  - added 'needsToHideName' method and several places in code replaced with this
  method's calls;
  - some changes which are related to previous listed;
  - 'resolveToxId' returned to GenericChatForm class.
2017-04-25 12:30:34 +03:00
noavarice
a83f8d1dfd refactor: returned correct code style 2017-04-25 12:30:34 +03:00
noavarice
7e1f8cb23e docs: added docs to some GenericChatForm methods 2017-04-25 12:30:34 +03:00
noavarice
e9c7caf3e7 refactor: sorted (several removed) headers, class declarations and fields 2017-04-25 12:30:34 +03:00
noavarice
b074c831d3 refactor: refactored message-adding methods
Return value of "addMessage" was not used at all, so now this method
(and "addSelfMessage" too) does not have return value - just inserts
message into ChatLog. Also messages are creating with "createMessage"
and "createSelfMessage"
2017-04-25 12:30:34 +03:00
noavarice
2598973c76 refactor: remove unnecessary methods
"isEmpty" method is just completely redundant, while "fontToCss" and
"resolveToxId" don't relate to "GenericChatForm" class
2017-04-25 12:30:34 +03:00
noavarice
27f65be289 refactor: literals replaced with constants 2017-04-25 12:30:34 +03:00
ezavod
4886868ece
fix(settings): changing language sets title to "Add Friend"
This fixes issue #3708.
Changing language sets title of settings widget to "Settings" instead
of wrong "Add Friend".
2017-04-23 16:21:27 +02:00
sudden6
5b31cf6d9d
fix(profile): toxsave wasn't correctly encrypted
fix #4344
2017-04-23 13:51:31 +02:00
sudden6
52617ad075
Merge pull request #4341
ezavod (1):
      fix(chatform): disable Tab in add friend message text  area
2017-04-22 15:44:27 +02:00
noavarice
39035f7b68 refactor: returned correct code format and some other small changes 2017-04-19 18:19:19 +03:00
noavarice
5329899d86 docs: added docs for SmileyPack 2017-04-19 18:19:19 +03:00
noavarice
935c1a2aa8 refactor: removed meaningless 'isValid' method 2017-04-19 18:19:19 +03:00
noavarice
e0f1a01a74 refactor: SmileyPack refactoring
Brief list of changes:
  - removed unnecessary headers;
  - QList several times replaced with QVector for faster iteration;
  - some other things
2017-04-19 18:19:18 +03:00
ezavod
195e891da1
fix(chatform): disable Tab in add friend message text area
This is related to #2100.
Tab is no longer accepted as input in add friend message text area,
instead it changes the focus.
2017-04-19 09:19:09 +02:00
Diadlo
b691cf9bed
refactor: Add parentheses around the '&&' expression 2017-04-18 00:14:49 +03:00
Diadlo
15a385ba75
refactor(time): Make enum class 2017-04-14 13:57:57 +03:00
Diadlo
470c17cd1f
refactor(time): Cleanup time-related code
- Remove manual category creation.
- Remove shitty code duplication.

BREAKING CHANGE: Now 'last 7 days' can contains days from the last month.
2017-04-14 13:57:55 +03:00
sudden6
b68ad4ced2
feat(audio): don't use dynamic memory allocation and remove resource leak 2017-04-14 09:09:56 +02:00
noavarice
532e05cb0f fix: fixed segfault after accepting group invite
Fix #4327
Description:
  - QString::arg call with mulpiple arguments replaced with chained
    QString::arg calls;
  - dynamic memory allocation for array of names replaced with
    allocation on the stack, unfortunately I do not notice this while
    making Core refactoring.
Also code style is formatted with script
2017-04-12 22:57:31 +03:00
sudden6
c472cdcab5
Merge pull request #4328
Yuri (1):
      fix(includes): Added missing #include <ctime>
2017-04-12 00:15:55 +02:00
Yuri
e597d391fc fix(includes): Added missing #include <ctime>
time(3) requires this include. Found when qTox failed to build on the FreeBSD due to the missing include.
2017-04-11 00:04:48 -07:00
sudden6
084f3b0626
feat: stop using plaintext passwords in the code 2017-04-08 12:24:29 +02:00
sudden6
0f54e44262
Merge pull request #4305
ezavod (1):
      feat(chatform): mark message with triple click
2017-04-07 18:40:07 +02:00