Commit Graph

2284 Commits

Author SHA1 Message Date
0da59285cf Reader: fix QTimer-related memory leaks 2020-08-31 15:44:50 +02:00
b0082101d3 Reader: don't forget comic info visibility
The timer used to time out and invoke Viewer::informationSwitch() twice
before getting destroyed. This caused the following bug:
    1. Press 'I' to Show Info in YACReader.
    2. Restart YACReader (exit and run again). Info is visible.
    3. Restart YACReader one more time. Info is hidden.

Apparently, when informationSwitch() was called a second time soon after
the first one, informationLabel didn't hide for some reason, but the
wrong value (false) was stored at the SHOW_INFO key in Configuration.
2020-08-31 15:44:50 +02:00
1ce873dd63 Merge pull request #156 from selmf/feature/server_port
Headless server: Add support for setting a port from commandline
2020-08-31 15:05:50 +02:00
4a654c38c0 Headless server: Add support for setting a port from commandline
Manual editing of a config file for setting a port is not ideal.
Solution: add a set-port command to save a port and also a
--port option to allow setting a temporary port during startup
2020-08-29 18:21:06 +02:00
fef734d132 Merge pull request #155 from YACReader/bidirectional_sync_support
Bidirectional sync support
2020-08-25 23:23:41 +02:00
b64ea19e8b Use an invalid QVariant to set to NULL a value in the DB
nullptr causes troubles in some platforms/compiles
2020-08-25 19:45:05 +02:00
f11a757141 Code format
I had to update clang-format
2020-08-25 19:13:43 +02:00
8a99e35cf6 Update CHANGELOG 2020-08-25 19:04:43 +02:00
5bc3ad5014 Send back more recent comic status to the client on sync 2020-08-25 19:03:00 +02:00
2b780e23a4 Make updateFromRemoteClient return more updated comics
So they can be sent back to the client.
2020-08-25 19:01:43 +02:00
fe15bc2ba8 Include "last_time_opened" in JSON serialization 2020-08-25 19:01:03 +02:00
c84fc20419 Reset last time opened when setting a comic as unread 2020-08-25 19:00:21 +02:00
30fd5491a4 Merge pull request #154 from selmf/database_leaks
Fix object leaks in database code
2020-08-25 18:57:54 +02:00
4b3042def4 Fix object leaks in database code
Qt's database and query model requires that both the queries and the database
objects are out of scope before a database connection can safely be removed.

Solution: Properly encapsulate databases and queries in "{ }" and use a string
to cache the connection name for out-of-scope removal.
2020-08-25 17:34:46 +02:00
48a0d64837 Add QtWebApp to third party readme 2020-08-20 18:22:57 +02:00
1b344d70e5 Update server code integration for QtWebApp 1.7.11
- Adapt server code for QtWebapp namespace 'stefanfrings'
- Implement custom modifications needed by v1 controller
  via template engine
- Unify iphone and ipad templates
2020-08-20 18:22:57 +02:00
f8a00605c5 Remove unused QtWebApp logging code
We're using QsLog, so there is no need for another logger.
2020-08-20 18:22:57 +02:00
b9c48cc4b6 Update QtWebapp to 1.7.11 2020-08-20 18:22:57 +02:00
3de099491f Move QtWebApp sources to third_party 2020-08-20 18:22:57 +02:00
fc8c1080da Add a message handler
This ensures that Qt debug messages actually end up in our logfiles,
even if we didn't use QsLog to create them.
2020-08-20 17:41:56 +02:00
56e6f8fdcc Allow setting YACReader loglevel from console 2020-08-20 17:41:56 +02:00
ac4d2f4804 Fix QsLog integration in reader too. 2020-08-20 17:41:56 +02:00
2f9db87f9b Document QsLog update 2020-08-20 17:41:56 +02:00
1af613663c Fix QsLog setup in Library and LibraryServer
The calls changed, so we need to adapt them.
2020-08-20 17:41:56 +02:00
1568a5f253 Update QsLog to 2.1 snapshot 46b643d5bcbc 2020-08-20 17:41:56 +02:00
c13ec618d0 Move QsLog to third_party directory 2020-08-20 17:41:56 +02:00
b9acd13120 Fix code format errors due to changes in default coding style. (#150) 2020-07-24 21:17:49 +02:00
41ccef1060 Fix possible memleaks occuring when passing nonexistent dirs to console library creator. (#132) 2020-07-02 20:28:53 +02:00
868843df37 fix spelling error in readme.md (#142) 2020-07-02 20:23:44 +02:00
092611f0cd Send read status for imported comics 2020-05-09 22:19:00 +02:00
75e71a434c Add badges for our Azure CI jobs. (#131)
* Add badges for our Azure CI jobs.
2020-04-14 10:22:51 +02:00
e6bc8f38a0 Merge pull request #106 from selmf/export-ignore-update
Update export-ignore
2020-04-11 22:02:00 +02:00
45899b6835 Exclude openssl an 7zip from git export so they don't pollute our source tarballs 2020-04-11 21:26:19 +02:00
60441c3c4a Merge pull request #130 from YACReader/fix/skip_macos_sign_on_prs
Skip macos sign on PRs
2020-04-11 20:29:56 +02:00
3a3c6277ab Skip macos sign on prs 2020-04-11 19:40:52 +02:00
5688303999 Merge pull request #129 from YACReader/feature/azure-update
Update azure pipelines to work on forked repos
2020-04-09 20:22:23 +02:00
4aefd4283d Install QtScript in Windows 2020-04-09 18:35:01 +02:00
7e19dc8e6a Update azure pipelines to work on forked repos
Use macos catalina too
2020-04-09 18:17:17 +02:00
15c126fda5 Enable unarr 7z support. Closes #113 (#115)
* Enable unarr 7z support. Closes #113
2020-02-12 08:38:03 +01:00
65a77daa75 Explicitly include <sys/socket.h>
server_config_dialog.cpp:57:30: error: member access into incomplete type 'struct sockaddr'
            if (ifa->ifa_addr->sa_family == AF_INET) { // check it is IP4
                             ^
/usr/local/include/qt5/QtNetwork/qhostaddress.h:50:8: note: forward declaration of 'sockaddr'
struct sockaddr;
       ^
server_config_dialog.cpp:61:27: error: use of undeclared identifier 'AF_INET'
                inet_ntop(AF_INET, tmpAddrPtr, addressBuffer, INET_ADDRSTRLEN);
                          ^
server_config_dialog.cpp:64:37: error: member access into incomplete type 'struct sockaddr'
            } else if (ifa->ifa_addr->sa_family == AF_INET6) { // check it is IP6
                                    ^
/usr/local/include/qt5/QtNetwork/qhostaddress.h:50:8: note: forward declaration of 'sockaddr'
struct sockaddr;
       ^
server_config_dialog.cpp:68:27: error: use of undeclared identifier 'AF_INET6'
                inet_ntop(AF_INET6, tmpAddrPtr, addressBuffer, INET6_ADDRSTRLEN);
                          ^
2019-11-26 19:03:34 +00:00
27f52df15c Azure Pipelines: Fix path environment 2019-11-20 15:57:35 +00:00
d74d1c52ef Windows: Use Qt 5.12.6 for CI builds 2019-11-20 15:57:35 +00:00
0ccdc8073a Azure Pipelines: Fix Qt path for Windows builds 2019-11-20 15:57:35 +00:00
bc34ff0448 Azure pipelines: rename 'arquitecture' to 'architecture' 2019-11-20 15:57:35 +00:00
36c1cdd2da Merge pull request #95 from YACReader/feature/improve_file_association_in_macos
Improve file association in YACReader Info.plist
2019-10-20 09:49:39 +02:00
eea96f6fa2 Improve file association in YACReader Info.plist 2019-10-20 09:19:49 +02:00
88ccae7280 Merge pull request #93 from selmf/server_default
Fix headless server build defaults
2019-10-06 20:47:59 +02:00
704a12d6a9 YACReaderLibraryServer: Don't disable Qt debug output. 2019-10-06 16:02:20 +02:00
e0cce99be0 YACReaderLibraryServer: Default to bundled build.
As the headless server is now part of the default build, we need to
default to a bundled build to avoid packaging problems and confusion
on Linux and other systems using make install.
2019-10-06 16:01:00 +02:00
e5f59ae93f Merge pull request #91 from prantlf/fix-link-to-releases
Fix the hyperlink to project releases in README
2019-10-04 12:10:50 +02:00