Commit graph

6986 commits

Author SHA1 Message Date
sledgehammer999
58e4f9d38e Slim down 'Downloads' page of options window. 2016-06-20 02:03:08 +03:00
botmtl
5bd7dce396 default RSSRefreshInterval to 30 mins
closes issue #5235 (https://github.com/qbittorrent/qBittorrent/issues/5235)
2016-06-20 02:03:07 +03:00
sledgehammer999
d9d49b6d0b Fix gcc 6 compilation with qmake. See #5237. 2016-06-20 02:03:07 +03:00
Chocobo1
cc48ca1fdc Use QString::localeAwareCompare for comparsion 2016-06-20 02:03:07 +03:00
Chocobo1
2dc6002064 Use boost:circular_buffer instead of QList.
QList has to store an additional pointer for each element which leads to bad space efficiency.
2016-06-20 02:03:06 +03:00
ngosang
1478b21e8d [WebUI] Expose Add trackers feature 2016-06-20 02:03:06 +03:00
Gabriele
726c2fd56d WebUI: Add command to get the logs
Add /query/getLog and /query/getPeerLog to respectively retrieve
the main log and the peer log.

GET /query/getLog
Params:
 - normal (bool): include normal messages (default true)
 - info (bool): include info messages (default true)
 - warning (bool): include warning messages (default true)
 - critical (bool): include critical messages (default true)
 - last_known_id (int): exclude messages with id <= 'last_known_id'

GET /query/getPeerLog
Params:
 - last_known_id (int): exclude messages with id <= 'last_known_id'
2016-06-20 02:02:49 +03:00
SeigneurSerpent
df86d66702 Improve stack trace for windows by including source filenames and line numbers 2016-06-20 02:02:48 +03:00
Eugene Shalygin
223415fb69 update uncrustify config 2016-06-20 02:02:48 +03:00
thalieht
a4c9b667a7 resize column to contents only when they're visible
refactor updatePeerCountryResolutionState
deprecate m_resolveCountries var
2016-06-20 02:02:48 +03:00
Chocobo1
5f8e05ba50 Cleanup headers
Code formatting
2016-06-20 02:02:47 +03:00
Chocobo1
ed2689de15 Add lookup function to get PathType display names 2016-06-20 02:02:47 +03:00
Chocobo1
9e124527e1 Improve error messages for "Auto download torrents" 2016-06-20 02:02:47 +03:00
Vladimir Golovnev (Glassez)
59971aa577 Use new alert dispathing API 2016-06-20 02:02:47 +03:00
Ibrahim Tachijian
164ca0289a Add 'Added on' column in Webui. Closes #5145,#1092,#738 2016-06-20 02:02:46 +03:00
Chocobo1
c0aa50d74b Change ambiguous text "Copy selected" to "Copy IP:port" 2016-06-20 02:02:46 +03:00
Chocobo1
66d7dc751c Change "Auto download torrent" default save path to "default location". 2016-06-20 02:02:46 +03:00
Chocobo1
c1738f97f1 Improve wordings in "Auto download torrent" section 2016-06-20 02:02:45 +03:00
Eugene Shalygin
105874613a Fix crash when adding torrent via a magnet url
The file guard object has to be initialised in this case too because it
is accessed when dialog gets accepted or cancelled. Initialise it with
empty path.
2016-06-20 02:02:45 +03:00
Eugene Shalygin
d6829b253b Fix a typo in TorrentFileGuard 2016-06-20 02:02:45 +03:00
Eugene Shalygin
c1291539bf uncrustify: add constructor initialization list options 2016-06-20 02:02:45 +03:00
Eugene Shalygin
3060c979f4 Add option to automatically remove .torrent files upon adding
Some browsers do not download files, intended for immediate opening,
into a temporary directory, and thus a regular download directories
accumulate those unneeded files.

The option allows qBittorrent to clean after itself and delete those
files whether they were succesfully added or not (user-selectable
policy).
2016-06-20 02:02:41 +03:00
sledgehammer999
d71a18b945 Update definition of QBT_USES_QT5 to be true for qt >= 5.2.0 2016-06-20 02:01:34 +03:00
Chocobo1
4078fc5e2d Add case-sensitive & case-insensitive natural sort helper function
Fix helper function not being thread-safe
Use QBT_USES_QT5 define
2016-06-20 02:01:34 +03:00
Chocobo1
b7cb53a251 Cleanup headers
Move `class NaturalCompare` to .cpp file
2016-06-20 02:01:33 +03:00
Chocobo1
275a775769 Minor code formatting 2016-06-20 02:01:33 +03:00
Chocobo1
1c49ff1df6 Sort labels with naturalCompare(). Closes #3919. 2016-06-20 02:01:18 +03:00
Chocobo1
fc77fdbcb5 Replace naturalSort() with naturalCompare(). 2016-06-20 02:01:18 +03:00
Chocobo1
e0e757b610 Use qmake built-in test function files to locate translation files 2016-06-20 02:01:18 +03:00
Chocobo1
33fe9b6d87 Use POSIX shell 2016-06-20 02:01:17 +03:00
Chocobo1
fca78d1a3f Re-enable cache for linux builds
Enable cache for OSX builds
2016-06-20 02:01:17 +03:00
Chocobo1
92794a786f Suppress warning on OSX builds 2016-06-20 02:01:17 +03:00
zywo
08d9ad7f80 Set about tab font-size to default 2016-06-20 02:01:16 +03:00
Chocobo1
6023093329 Fix "IP Filtering - Apply to trackers" wasn't being applied. Closes #5217. 2016-06-20 02:01:16 +03:00
Eugene Shalygin
c070193c30 uncrustify: honour pointer and reference symbols alignment rules
Stick the '*' and '&' symbols to the variable name if there is one.
Also fix empty function bodies collapse option: replace it with the
eat_blanks_before_close_brace setting.
2016-06-20 02:01:16 +03:00
Eugene Shalygin
633fb7a7de refactor SettingsStorage class
1. Extract "transaction" support for QSettings into separate class
TransactionalSettings.
2. Define macrto with explicit name for the case when this "transaction"
support is needed.
3. A bit optimize QHash <-> QSettings copying: replace assign with
insert() and remove repetitive key lookups.
4. In save() check dirty status before getting the lock too.

The changes from items 1 and 2 make text more structured and the logic
of the SettingsStorage class gets separated from the implementation level
task of guarding the settings serialization. The changes in 3 and 4 do not
make the app much faster, but neither make any harm to the code readability.
2016-06-20 02:01:15 +03:00
Eugene Shalygin
14a37e8d45 cmake: add Qt::DBus library dependency for base module
This is needed for powermanagement and was mistakenly forgotten
2016-06-20 02:01:15 +03:00
Eugene Shalygin
d03a71899e cmake: mark libtorrent and qtsingleapplication include dirs as system 2016-06-20 02:01:15 +03:00
sledgehammer999
283338f5f3 Don't show added torrent notification during startup. 2016-06-20 02:01:15 +03:00
sledgehammer999
b600253313 Display notifications when a torrent is added. Closes #334 and #915. 2016-06-20 02:01:14 +03:00
Vladimir Golovnev (Glassez)
c97b5ab617 Fix .!qB extension is added when disabled 2016-06-20 02:01:14 +03:00
Vladimir Golovnev (Glassez)
9016b698c9 Use truncated torrent hash in temp path 2016-06-20 02:01:14 +03:00
Vladimir Golovnev (Glassez)
eb7a7b9c04 Use unique temp directories
Save torrent in temp_path/<torrent_hash> directory.
Closes #5154.
2016-06-20 02:01:13 +03:00
Eugene Shalygin
9e0a3ee692 cmake: reflect qmake project changes 2016-06-20 02:00:51 +03:00
ngosang
c899ed5b50 Fix duplicate network interfaces. Closes #5131 2016-06-20 02:00:50 +03:00
Vladimir Golovnev (Glassez)
a6c50aff95 Delete Import Torrent Dialog 2016-06-20 02:00:50 +03:00
Vladimir Golovnev (Glassez)
ab4a608342 Fix rechecking after torrent is finished 2016-06-20 02:00:50 +03:00
Vladimir Golovnev (Glassez)
e7cfd7a31d Try to find incomplete files for new torrent 2016-06-20 02:00:49 +03:00
Vladimir Golovnev (Glassez)
c4ea13b284 Fix torrent adding with existing data 2016-06-20 02:00:49 +03:00
Chocobo1
5d09639109 Fix mutually exclusive radio buttons can be unselected. 2016-06-20 02:00:49 +03:00