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

8293 Commits

Author SHA1 Message Date
Eric Long
8ab8b2fef9
chore(cmake): Fix CheckAtomic.cmake to check sub-word atomics
Platforms like riscv64 does have 32-bit or 64-bit atomics, but not 8-bit or 16-bit.

Modified `check_working_cxx_atomics` to check sub-word atomics as well.
2022-09-08 01:54:22 +08:00
Anthony Bilinski
a6d15140b1
Merge pull request #6648
fancyfarmer (2):
      fix(build): Remove unnecessary dependencies
      fix(build): Remove unnecessary dependencies for Windows build
2022-07-04 19:49:37 -07:00
fancyfarmer
4006d9b5e8
fix(build): Remove unnecessary dependencies for Windows build 2022-07-04 20:03:32 +02:00
fancyfarmer
0681614ecc
fix(build): Remove unnecessary dependencies 2022-06-30 17:42:56 +02:00
Anthony Bilinski
2197bce610
fix(AppManager): Don't create temporary copy of argc
QApplication takes argc by reference, so copying it in to AppManager's
constructor causes QApplication's to have an invalid reference once AppManager's
constructor returns.

Instead just reference main's argc.

Fix #6641
2022-06-14 16:24:09 -07:00
Anthony Bilinski
b394f22599
refactor(Nexus): Remove singleton, construct with needed arguments 2022-06-07 19:53:03 -07:00
Anthony Bilinski
0e7da7378f
refactor(Nexus): Remove static getCameraSource
On path towards removing Nexus singleton.
2022-06-07 19:52:47 -07:00
Anthony Bilinski
d4421c7161
chore(Qt): Replace QGuiApplication usage with QApplication
QGuiApplication is for QML projects, QApplication is for Qt Widget projects.

We use QApplication everywhere else, so use here too.
2022-05-30 14:01:56 -07:00
Anthony Bilinski
c2a3be79fe
Merge Weblate translations
Manually resolving AppManager move from
c519c389536905594bc3291a5e379e15b97614d,
50bda558cd
2022-05-26 19:23:43 -07:00
Anthony Bilinski
665a6c4e3d
refactor(Nexus): Remove Nexus::getDesktopGUI
Remove ProfileImporter's dependence on Widget, on path towards removing
Nexus singleton.
2022-05-26 18:04:01 -07:00
Anthony Bilinski
d2fe222b89
refactor(core): Remove unused Core::getKeyPair 2022-05-26 13:26:41 -07:00
Anthony Bilinski
50bda558cd
chore(l10n): Mark moved AppManager translations as finished
lupdate keeps moved translations, but marks them as unfinished. Since
context hasn't changed, the meaning of phrases is the same in this case.
Mark all moved translations that were finished before as finished now.
2022-05-24 13:26:48 -07:00
Anthony Bilinski
7c519c3895
refactor(main): Move main global state into new AppManager class
main() couldn't hold its own state since cleanup() needed access to it.
Having the state in a class allows QApplication::aboutToQuit to call
into a member function with access to the state.

Data used in logging still needs to be global due to
qInstallMessageHandler not accepting a void* to get back to this.

Set QGuiApplication attributes before constructing Qapplication as required,
by using comma operator to call an initialization function before construction
all members in the member initializer list.

Keep logic largely unchanged, but with a defined destruction order.

Destruction is still abnormal due to QApplication::aboutToQuit forcing
us to do partial cleanup before QApplication returns, since some OSes
will kill qTox before the QApplication returns.
2022-05-24 13:26:48 -07:00
Anthony Bilinski
fd930cfbb2
refactor(History): Split remove history query into transaction 2022-05-24 12:27:16 -07:00
無情天
60f8ae4902
feat(l10n): update Chinese (Simplified) translation from Weblate 2022-05-24 20:55:34 +02:00
S3aBreeze
2550653146
feat(l10n): update Russian translation from Weblate
feat(l10n): update Russian translation from Weblate
2022-05-24 20:55:34 +02:00
Andrey
62548f1fec
feat(l10n): update Russian translation from Weblate 2022-05-24 20:55:33 +02:00
Oymate
d64154a593
feat(l10n): update Bengali translation from Weblate
feat(l10n): add Bengali translation using Weblate
2022-05-24 20:55:33 +02:00
SC
72ed075855
feat(l10n): update Portuguese translation from Weblate 2022-05-24 20:55:33 +02:00
이정희
1c0616cca9
feat(l10n): update Korean translation from Weblate 2022-05-24 20:55:33 +02:00
txmvcssnhhptjeer cfegmheuzrmnjdso
b66caa5895
feat(l10n): update Polish translation from Weblate 2022-05-24 20:55:33 +02:00
Deleted User
adf4332c42
feat(l10n): update Polish translation from Weblate 2022-05-24 20:55:33 +02:00
The Cats
e5748056c8
feat(l10n): update Portuguese (Brazil) translation from Weblate
feat(l10n): update Italian translation from Weblate

feat(l10n): update French translation from Weblate

feat(l10n): update Spanish translation from Weblate

feat(l10n): update Portuguese (Brazil) translation from Weblate

feat(l10n): update French translation from Weblate

feat(l10n): update Spanish translation from Weblate

feat(l10n): update German translation from Weblate
2022-05-24 20:55:33 +02:00
Giannis
44bebc7582
feat(l10n): update Greek translation from Weblate 2022-05-24 20:55:33 +02:00
menom
197c9ebe5b
feat(l10n): update Slovak translation from Weblate 2022-05-24 20:55:33 +02:00
Eduard Mandy
15864a3281
feat(l10n): update Hungarian translation from Weblate 2022-05-24 20:55:33 +02:00
Frankie McEyes
ceec7d7f16
feat(l10n): update Italian translation from Weblate
feat(l10n): update Italian translation from Weblate

feat(l10n): update Italian translation from Weblate
2022-05-24 20:55:33 +02:00
Alan
5b1661c486
feat(l10n): update Portuguese (Brazil) translation from Weblate 2022-05-24 20:55:33 +02:00
Eric
0d80f04de7
feat(l10n): update Chinese (Simplified) translation from Weblate 2022-05-24 20:55:33 +02:00
Oğuz Ersen
e4b96179d9
feat(l10n): update Turkish translation from Weblate
feat(l10n): update Turkish translation from Weblate
2022-05-24 20:55:33 +02:00
S3aBreeze
848379652f
feat(l10n): update Russian translation from Weblate 2022-05-24 20:55:33 +02:00
109247019824
986b5359a6
feat(l10n): update Bulgarian translation from Weblate
feat(l10n): update Bulgarian translation from Weblate
2022-05-24 20:55:33 +02:00
Sonita
3063713704
feat(l10n): update Vietnamese translation from Weblate
feat(l10n): add Vietnamese translation using Weblate
2022-05-24 20:55:33 +02:00
Anthony Bilinski
9a8706a65f
fix(history): Heal duplicate peer entries with different case
Prior to 2f4e8dc3e8 we would take
the written ToxID and insert that straight into history without
any case check

Must be done prior to schema 11 since even though the UNIQUE constraint
on the peers table is fooled by the different case, the UNIQUE
constraint on the new chats and authors table which are stored as BLOBS
fail during upgrade when the two different case but equal ToxPks
collide.

Unfortunately it can't be done as its own upgrade since 11 was already
merged, and this is a prerequisite for 11 to pass for some users.

Execute prior to starting the split peer upgrade instead of as a larger
transaction for simplicity of the split upgrade, and since executing
this deduplication is idempotent.
2022-05-22 11:15:59 -07:00
Anthony Bilinski
69d07f077e
refactor(history): Expose mergeDuplicatePeers from DbUpgrader
To be used by both dbSchema8to9 and dbTo11.
2022-05-22 11:15:59 -07:00
Anthony Bilinski
f29570138f
fix(history): Strictly check public_key during database upgrade
Text comparisons in SQL are not case sensitive. Since we want to use this check
to specifically check for case mismatch, cast to blob which then does an exact
comparison.
2022-05-22 11:15:55 -07:00
Anthony Bilinski
dc46267833
fix(test): Don't rely on row IDs after moving tables
Row ID's are not guaranteed to match those from the original peer table.

New checking method is equally strict since we already verify the number
of entries, and the SQL schema guarantees that entries are unique.
2022-05-21 20:49:32 -07:00
Anthony Bilinski
46ef31293c
refactor(CI): Rename Windows cross compile builds to match cmake types
Debug and Release with capital letters are consistent with all our other CI
script build type names as well as cmake build types.
2022-05-21 18:21:04 -07:00
Anthony Bilinski
40b339b367
refactor(IPC): Remove activate's handler reliance on global state
Register in Widget's constructor so that handler can always get back to
Widget.

Add unregistration functionality so that the handler doesn't run when
we've returned to the login window or when exiting.
2022-05-21 17:18:07 -07:00
Anthony Bilinski
6ad92bb637
test(history): Add unit test for when db is newer than qTox supports 2022-05-20 11:38:12 -07:00
Anthony Bilinski
f4e64ee7a6
feat(History): Add a GUI error on database schema mismatch
Fix #5683
2022-05-20 11:38:12 -07:00
Anthony Bilinski
0d1f4c4728
chore(CI): Revert macOS runner hack needed for keg-only git install
This reverts commit f8e834c5c0.

Appears to no longer be an issue, brew is now able to use the pre-installed
version of git without error.
2022-05-19 20:15:02 -07:00
Anthony Bilinski
46fb4e9a4f
Merge pull request #6628
bodwok (1):
      fix(Widget): Incorrect removing of contacts
2022-05-14 10:54:14 -07:00
bodwok
039f6ff0b3
fix(Widget): Incorrect removing of contacts 2022-05-14 10:21:47 -07:00
Anthony Bilinski
bc8763e835
Merge pull request #6576
bodwok (1):
      fix(contacts): window with multiple friends contacts
2022-05-08 05:27:10 -07:00
bodwok
1545945236
fix(contacts): window with multiple friends contacts 2022-05-08 04:06:16 -07:00
Anthony Bilinski
3c467de9f2
chore(deps): Update c-toxcore to v0.2.18
Replace msgpack-c with toxcore submodule of cmp.
2022-05-01 06:32:21 -07:00
Anthony Bilinski
a004243cc0
chore(CI): Update brew package formulae before running upgrade
Otherwise we're upgrading packages based of a stale package list.
2022-04-30 18:47:04 -07:00
Anthony Bilinski
f8e834c5c0
chore(CI): Remove keg-only install of git in github action runner
Doesn't have a formula present, but is still linked to /usr/, so
conflicts with installing or upgrading git from out brewfile. Removing
it gives us a more standard environment, and allows us to test our
brewfile unmodified.

Fixes run failures like
https://github.com/qTox/qTox/runs/6111786910?check_suite_focus=true
2022-04-27 19:00:47 -07:00
Anthony Bilinski
a300415983
chore(i18n): Update translation files for Weblate
Unsure why new diffs were generated from the last source update based
on incoming translations.
2022-04-05 12:56:27 -07:00