Commit graph

6293 commits

Author SHA1 Message Date
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
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
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
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
Chocobo1
885f5b4bee Enable word wrap for "Run external program" help text 2016-06-20 02:00:49 +03:00
Chocobo1
3cd06c457a Fix toolbar resizing when m_searchFilter appears/disappears. Closes #5120. 2016-06-20 01:53:08 +03:00
Chocobo1
373e22660d Disable comboHideZero when checkHideZero is unchecked.
Disable `checkLimituTPConnections` when `checkuTP` is unchecked.
Minor code formatting
2016-06-20 01:53:08 +03:00
Chocobo1
92f58a40e7 Morph QToolButton to QPushButton 2016-06-20 01:53:07 +03:00
Chocobo1
dbf5a264bd Fix path to resource 2016-06-20 01:52:54 +03:00
ngosang
145dcf9efe [Search engine] Fix LegitTorrents plugin 2016-06-20 01:52:54 +03:00
ngosang
f05e25c750 [Search engine] Fix Mininova plugin 2016-06-20 01:52:54 +03:00
ngosang
fc02377171 [Search engine] Fix Torrentz plugin for Python2 2016-06-20 01:52:53 +03:00
ngosang
fae583e0da Fix Add tracker dialog URL download 2016-06-20 01:52:53 +03:00
ngosang
1114c198ca Fix Add tracker dialog empty trackers 2016-06-20 01:52:52 +03:00
Eugene Shalygin
c5f9567c0b cmake: raise minimal cmake version to 3.5 and use its features 2016-06-20 01:52:52 +03:00
Eugene Shalygin
e9a5768e4f cmake: drop explicit Boost dependency
We get it implicitly from libtorrent
2016-06-20 01:52:52 +03:00
Eugene Shalygin
858e5f8db8 cmake: add imported target for Libtorrent 2016-06-20 01:52:51 +03:00
ngosang
fc95ce310e Fix Update all button height in RSS tab 2016-06-20 01:52:51 +03:00
ngosang
e2c9e7b877 Minor change in Stats dialog 2016-06-20 01:52:51 +03:00
sledgehammer999
b1e62ca006 Display the filepath when a torrent fails to load. Closes #100 and #805. 2016-06-20 01:52:50 +03:00
Chocobo1
a0c1ee76a2 Fix qBittorrent doesn't exit immediately when "all donwloads are done -> exit" option enabled.
This fix is provided by glassez.
2016-06-20 01:52:49 +03:00
Chocobo1
c7b15b9cc5 Enable access to shutdown functions when configured with --disable-gui option 2016-06-20 01:52:29 +03:00
Chocobo1
0770fe8b09 Fix Coverity Scan 143909.
Also, the setting "Confirmation on auto-exit when downloads finish" wasn't working before.
2016-06-20 01:52:28 +03:00
sledgehammer999
cf98220c40 Fix log menu item position broken by 1760beed17. 2016-06-20 01:52:28 +03:00
sledgehammer999
2eb393ae9a Bump API_VERSION to 11. 2016-06-20 01:52:26 +03:00
buinsky
d65d11d64c WebUI: Select category on right click 2016-06-20 01:50:55 +03:00
buinsky
f4fdb80cc9 WebUI: Don't show several context menus at the same time 2016-06-20 01:50:54 +03:00
buinsky
50a0ce1da2 WebUI: Adjust context menu position 2016-06-20 01:50:54 +03:00
buinsky
2e9370481d WebUI: Implement delete torrents by category 2016-06-20 01:50:54 +03:00
buinsky
c60c58b092 WebUI: Implement pause torrents by category 2016-06-20 01:50:53 +03:00