Chocobo1
4d04af4043
Replace raster qbt logo with vector version
...
Add helper function for svg icons.
7 years ago
Chocobo1
f934042a98
Fix GUI scaling factor on macOS
...
macOS seems have an unique way to handle widget size, that is, it doesn't require
application to resize widgets manually, Qt will handle the resize job
automatically.
Closes #8841 .
7 years ago
Chocobo1
0b63f35a54
Use 32px icons for favicon
...
One less resource to manage and 16px size can be downsampled from 32px
on-the-fly anyway.
7 years ago
Nick Korotysh
0b8c620fd3
Add missing "override"
7 years ago
Chocobo1
c0df292567
Remove debug messages
7 years ago
Chocobo1
defba23d61
Refactor code
...
Remove forward declarations of Qt types.
Fix header include order.
7 years ago
Vladimir Golovnev (Glassez)
85dd446198
Fix wrong API method names
...
Closes #8828 .
7 years ago
Chocobo1
6d923f703a
Fix displayed tracker messages
...
Before this change, we were displaying debug messages constructed by
libtorrent, now we show messages returned by trackers.
Closes #8739 .
7 years ago
Chocobo1
90f42e6737
Refactor functions
...
Add const to variables
Remove debug messages
7 years ago
Chocobo1
58861c35b0
Fix compile warnings on gcc 8
...
The warning was:
warning: catching polymorphic type ‘class std::exception’ by value
[-Wcatch-value=]
7 years ago
Chocobo1
203bafc4c3
Revert commit
...
Apparently the translations were working in previous state, but affected by
lupdate issue:
https://github.com/qbittorrent/qBittorrent/issues/8220#issuecomment-385712673
The reverts commit fb698896c9
.
Closes #8831 .
7 years ago
Chocobo1
9f809114f0
Really fix translation in fspathedit
...
QT_TRANSLATE_NOOP3 is a macro, so we cannot use a runtime string for the context
argument.
Fix up 1d778676cd
.
7 years ago
Chocobo1
d20f40184f
Fix translation strings not found
...
The translation context doesn't exist, so the translations were not found, fixed
now.
Closes #8829 .
7 years ago
sledgehammer999
ea8c57be23
Sync translations from Transifex and run lupdate
7 years ago
sledgehammer999
90bb67c654
Add RSS/Log widgets to the QTabWidget on macOS
...
Fixes commit a468c84b30
7 years ago
Marcel Petersen
fc58e8a0c6
Filter torrent info endpoint by hashes
...
Added hashes parameter to info action.
Allows filtering seralized torrents by passing it into the TorrentFilter.
7 years ago
sledgehammer999
8f7fda492c
Sync translations from Transifex and run lupdate
...
Closes #8220 #8169
7 years ago
Chocobo1
e423314ac2
Work around false-positive warning from lupdate
...
In short, lupdate will get confused when seeing `template <class T>`,
see: QTBUG-55478
7 years ago
Chocobo1
9fabe59b80
Fix usage of Q_DECLARE_TR_FUNCTIONS()
...
The context parameter shouldn't be enclosed in double quotes.
7 years ago
sledgehammer999
6e94b03c13
Fix compilation against libtorrent 1.0.x
...
Closes #8798
7 years ago
Chocobo1
c61f641613
Fix untranslated string
...
Closes #8809 .
7 years ago
Chocobo1
f6d74e3996
Retry saving settings when operation failed
7 years ago
Chocobo1
099314d17f
Make settings file recovery more robust
...
We should not blindly remove the leftover settings file, as the following write()
operation could fail and the user would lost all settings.
We should try renaming it instead.
7 years ago
Chocobo1
708b5a6904
Refactor SettingsStorage class
...
Make use of (i.e. returning) QFile::rename operation status
Make log message more verbose
Add const
Remove empty lines
Inline typedef
7 years ago
sledgehammer999
fb346e15e8
Sync translations from Transifex and run lupdate
7 years ago
Chocobo1
8b575484e6
Fix path separator in log messages
7 years ago
Chocobo1
81a4f3ced0
Use RNG provided by OS
...
The general consensus is to use random facility provided by OS instead
of using other software random generators.
7 years ago
Chocobo1
970ad7cf28
Sort filenames when creating torrent
...
First all dir paths are retrieved, then filenames in each path
are retrieved and sorted, then concatenate the sorted filenames together.
7 years ago
toster
c4625f50a8
Pass isAlignmentOptimized flag to piece size calculation
7 years ago
Vladimir Golovnev (Glassez)
001bd38557
Fix pauseAll/resumeAll legacy API methods
...
Closes #8766 .
7 years ago
Chocobo1
68c2d81072
Fix memory leak
7 years ago
Chocobo1
4dea03fc74
Remove unused constants
7 years ago
thalieht
3e4099fe5b
Replace the zeroing of pointers with nullptr
7 years ago
toster
e538eae726
Make alignment optimization optional
...
Disabling alignment optimization allows preserving file order in torrent
files and closes #5652
7 years ago
Chocobo1
898239a42e
Fix renaming completed files
...
Check whether the file is already downloaded before appending QB_EXT to
filename.
Closes #8039 .
7 years ago
Thomas Piccirello
9f36b54b04
WebUI Add Limit Share Ratio context menu option
...
Closes #6815 , #7602 .
7 years ago
Thomas Piccirello
1f42ab8c4f
Remove unused/superfluous variables
7 years ago
Thomas Piccirello
3f0fbc0810
WebUI rename property to match its definition
7 years ago
sledgehammer999
ddba79ef3d
Fix wrong QString::arg() usage that leads to crash
...
We need to be careful when using the multi-arg version of
QString::arg() and passing as 2nd, 3rd etc parameter an int.
It doesn't do the same as passing multiple QStrings.
7 years ago
Nick Korotysh
7712d0ada0
Allow to disable Stacktrace support
...
Enable backtrace stuff only if GNU C library used, because current
backtrace implementation based on <execinfo.h> , which is not a
part of standard C library, it is a GNU extension.
This will be usefull when building with custom POSIX-compilant C
library (like musl) and no <execinfo.h> available.
Note: configure script will detect presence of <execinfo.h> and
enable/disable feature depending on it.
Feature is enabled by default.
7 years ago
Luís Pereira
758c70283f
Fix crashes due to invalid iterator use
...
Although the iterators are constant we are indirectly changing them.
Introduced by commit ac42ccb5e4
.
Closes #8633
7 years ago
sledgehammer999
747c70a58e
Avoid data corruption when rechecking paused torrents
...
Libtorrent can recheck only unpaused torrents. We get around this by
unpausing the torrent, issuing the recheck and pausing again after we
get alerted by libtorrent that the recheck has finished. This alert is
asyncronous. There is a small time frame where the program might start
downloading and writing data to the file before we pause it. This can
lead to data corruption if the file on disk is totally different that
the one expected by the torrent AND the file on disk is a valid file on
its own. OR in case the user points the new torrent to the wrong
directory by mistake.
To get around this the torrent is placed in upload_mode and out of
automanagement.
7 years ago
Vladimir Golovnev (Glassez)
cb505a07fe
Fix setting preferences via WebAPI
...
Closes #7335 .
7 years ago
Chocobo1
5819b6dd39
Use Unicode version of InitiateSystemShutdown
7 years ago
Chocobo1
644e7d0450
Use dynamic linking for SetSuspendState function
7 years ago
Chocobo1
b0e3d77975
Add helper for loading Windows system functions
7 years ago
Chocobo1
643a209812
Sort include headers
...
Also add anonymous namespace.
7 years ago
Chocobo1
cf2c0bd47e
Apply formatting to Web UI files
7 years ago
Chocobo1
59e6757242
Avoid showing an empty row in AdvancedSettings
...
Fixup 543cbc6d1c
.
7 years ago
Chocobo1
6bbcf9b3d6
Stop creating Download folder on start
...
The existence of this folder isn't required to run qbt and it can be
created when adding torrent.
Closes #8290 .
7 years ago