Commit graph

6498 commits

Author SHA1 Message Date
ngosang
52ff53b0b0 [Web UI] Reorder "Super seeding mode" option in right click menu 2015-09-17 17:22:09 +02:00
Chocobo1
65d3ca8c3f Capitalize items 2015-09-17 18:08:12 +08:00
Chocobo1
a16c264aa3 RSS Downloader dialog cleanup 2015-09-17 18:08:12 +08:00
sledgehammer999
4642a35de7 Don't limit the number of torrents that can be announced to the tracker/dht/lsd. Closes #3473. 2015-09-16 22:03:20 +03:00
sledgehammer999
50822a7476 Merge pull request #3071 from ppolewicz/interface_bind_fixes
Interface bind fixes
2015-09-16 13:04:52 -05:00
Pawel Polewicz
f108e67dcc Call setListeningPort() when state of network interface changes (closes qbittorrent/qBittorrent#475, closes qbittorrent/qBittorrent#3072) 2015-09-16 14:32:49 +02:00
Pawel Polewicz
fb22940639 Small refactor in Session::setListeningPort() 2015-09-16 14:32:49 +02:00
ngosang
9c7bb08a03 Automatically add trackers to new downloads. 2015-09-16 11:43:57 +02:00
sledgehammer999
b4680e82b7 Merge pull request #3765 from jsayol/patch-1
Allow adding torrent link from Torcache
2015-09-15 18:52:53 -05:00
sledgehammer999
cbf683878a Show current label in the torrent context menu. Closes #3776. 2015-09-16 02:43:48 +03:00
Josep Sayol
fd5d3d0a48 Allow adding torrent link from Torcache
Recent changes in Torcache prevent adding (or drag-and-dropping) a torrent link into qBittorrent. Modifying DownloadManager to always spoof the HTTP Referer header to the file itself being downloaded solves this.
2015-09-16 05:08:53 +07:00
sledgehammer999
5cb022c7b1 Merge pull request #3736 from Chocobo1/option
Cleanup in options_imp
2015-09-15 17:03:45 -05:00
sledgehammer999
145950e766 Optimize text color for dark themes. Closes #3633. 2015-09-15 23:23:49 +03:00
sledgehammer999
8bde7d45b8 Try to avoid loading a corrupted configuration file. Also log errors encountered while saving/loading the configuration. Closes #3503. 2015-09-14 02:23:13 +03:00
Chocobo1
e0935fe14f Follow project coding style. Issue #2192. 2015-09-10 15:24:38 +08:00
Chocobo1
c27aa7723e Options GUI layout cleanups: Speed Page
Move uTP options to it's own section
2015-09-10 15:24:38 +08:00
Casey Bodley
87b26a8dcc webui: add save_path to /query/torrents
Signed-off-by: Casey Bodley <cbodley@gmail.com>
2015-09-07 16:25:07 -04:00
sledgehammer999
0b2b07e98e Sync translations from Transifex and run lupdate. 2015-09-04 23:30:39 +03:00
sledgehammer999
581d544f61 Fix typos. Make ìTP untranslatable. Use American variation of words. Closes #3654. 2015-09-04 23:14:02 +03:00
Chocobo1
7028c2712a Reorder code in options_imp::loadOptions() according to GUI layout 2015-09-03 15:19:05 +08:00
ngosang
4f504f597d Fix RSS panel position not saved 2015-09-03 04:45:47 +02:00
ngosang
a9e9a9c835 [Web UI] Changes in labels implementation 2015-09-03 03:16:07 +02:00
Felipe Barriga Richards
4ae2f6c33b webui (js): feature: Added complete support for labels (add/set/reset/display/filter) #648
Changes:
- added list of labels on the lower-left corner
- added support to add/set/reset labels on context menu
- added support to filter torrents by label
2015-09-03 03:16:07 +02:00
Felipe Barriga Richards
76d93c23b7 webui (c++): feature: added labels support. #648 2015-09-03 03:16:07 +02:00
sledgehammer999
9d051ea523 Merge pull request #3713 from ngosang/translate_countries
Allows translation of country names. Closes #3710
2015-09-02 16:48:14 -05:00
Gabriele
5cc5552d9b Use infinity symbol rather than -1 for nb_connections 2015-09-02 23:34:17 +02:00
Gabriele
42c74f9553 Avoid concatenation when dealing with translatable strings
Concatenation could be problematic with RTL languages.
2015-09-02 23:34:17 +02:00
Gabriele
420fa82e8d Put some string placeholders between quotes 2015-09-02 23:26:19 +02:00
ngosang
ee21562426 [RSS] Handle more types of RSS feeds 2015-09-02 20:10:44 +02:00
ngosang
b6c707c080 [RSS] Simplify string translation 2015-09-02 20:00:38 +02:00
ngosang
2eaeead67c [RSS] Allow multiple selection in RSS torrents list 2015-09-02 19:36:45 +02:00
ngosang
7c7da44622 [RSS] Don't hide the elements in Unread list when clicked 2015-09-02 19:12:39 +02:00
ngosang
7c6da30705 [RSS] More precise message and code simplification in RSS feeds deletion 2015-09-02 19:12:32 +02:00
ngosang
2955bb5488 [RSS] Improve error handling when a RSS feed doesn't contain torrents 2015-09-02 19:06:33 +02:00
ngosang
b78ccf289e [RSS] Fix contextual menu in RSS torrents list 2015-09-02 19:01:59 +02:00
ngosang
b9b7786477 [RSS] Trim elements text in RSS articles 2015-09-02 18:51:39 +02:00
ngosang
c3592304b6 [RSS] Handle magnet links as torrents instead of news URLs. Closes #3560 2015-09-02 18:51:39 +02:00
Nick Tiskov
2442411a5e Fix: Adding RSS rule with a new label doesn't add this label to UI. 2015-08-31 02:12:02 +03:00
Nick Tiskov
f5c0cddea5 Fix: Label changes to first item in RSS rule list are forgotten, because checkRegex calls updateMustLineValidity, which saves the rule before new label can be applied. 2015-08-31 01:48:30 +03:00
Gabriele
3889b4c101 Try to download favicon.png when the download of favicon.ico fails
This was done only when favicon.ico couldn't be decoded, but not when
favicon.ico could not be downloaded at all.
2015-08-30 22:28:06 +02:00
sledgehammer999
25c6d8bf6b Merge pull request #3561 from pmzqla/proxy-torrent
Add an option to allow the use of proxies only for torrents
2015-08-30 12:38:16 -05:00
sledgehammer999
cf72318d74 Merge pull request #2633 from Chocobo1/my_dev2
Fix wrong default download directory in Windows. Closes #2625.
2015-08-30 10:59:24 -05:00
Gabriele
a8c05ca02e Add https_proxy env variable
This forces Python to use the HTTP proxy for HTTPS connections.
2015-08-30 17:46:12 +02:00
Gabriele
1c8abd5c3b Add an option to allow the use of proxies only for torrents
Closes #2701.
2015-08-30 17:46:11 +02:00
Chocobo1
6ebe3897fb Fix wrong default download directory in Windows. Closes #2625. 2015-08-30 23:45:34 +08:00
sledgehammer999
9faa44eabf Merge pull request #3581 from pmzqla/redirect
DownloadManager: fix downloads after a redirection
2015-08-30 09:43:18 -05:00
sledgehammer999
f81ffdb78e Merge pull request #3644 from Chocobo1/graph_btn
Change "Select Graphs" from QToolButton to QComboBox
2015-08-30 08:59:00 -05:00
Chocobo1
2997c0fd1e Change "Select Graphs" from QToolButton to QComboBox 2015-08-30 21:38:05 +08:00
Chocobo1
e54cd8499e Move option "Confirm torrent deletion" to Behavior page 2015-08-30 21:28:16 +08:00
ngosang
c984902fbf Allows translation of country names 2015-08-30 15:09:15 +02:00
sledgehammer999
45cbf4bf25 Merge pull request #3481 from Chocobo1/moveOption
Move option "Ignore transfer limits on local network" to Speed page
2015-08-30 07:58:30 -05:00
Chocobo1
2204f27de1 Follow project coding style. Issue #2192. 2015-08-30 20:35:33 +08:00
sledgehammer999
735b1cc6b9 Merge pull request #3470 from ngosang/reorder_buttons
Change Queue buttons order in the Toolbar (GUI & Web UI)
2015-08-30 07:10:20 -05:00
sledgehammer999
a0da4a844c Merge pull request #3625 from Chocobo1/native_path
Use native path separators
2015-08-30 07:07:58 -05:00
sledgehammer999
ef7de49ec8 Fix dolphin detection for KDE5. 2015-08-29 23:49:14 +03:00
sledgehammer999
e937344761 Fix a bug with highlighting selected file on Windows. Closes #3185. 2015-08-29 23:49:09 +03:00
Gabriele
e728710430 Select the file of single file torrents when opening destination folder
Also, add the support for Nautilus (Gnome 3), Caja and Nemo.
2015-08-29 16:09:22 +02:00
Anton Lashkov
0d74131edd SpeedPlotView: fix render graphs with zero speed 2015-08-29 11:24:51 +04:00
Chocobo1
cf3a87ed55 Use native path separators, fixup of 030dd9e, 3baec1c. 2015-08-29 14:17:21 +08:00
Vladimir Golovnev (Glassez)
0afa4d260c Fix 'Append label to save path'. Closes #3495. 2015-08-17 18:37:00 +03:00
Gabriele
b2df917011 DownloadManager: fix downloads after a redirection
Closes #3580.
2015-08-05 21:41:57 +02:00
Chocobo1
b727ce3b29 Remove filters frame 2015-08-05 12:56:23 +08:00
Chocobo1
0e1eaa518b Alignment cleanup 2015-08-05 12:56:23 +08:00
sledgehammer999
f893131b8d Less verbose compilation output. Closes #3565. 2015-08-04 19:17:01 +03:00
sledgehammer999
2ec1d9e39e New translation: Slovenian
Also re-run lupdate.
2015-08-04 19:14:02 +03:00
sledgehammer999
bd2f9e436c Sync translations from Transifex and run lupdate. 2015-08-04 19:03:32 +03:00
sledgehammer999
ea38e4da4d Merge pull request #2699 from pmzqla/copyurl-search
Add "Copy description page URL" button in search tab
2015-08-04 18:45:31 +03:00
Gabriele
4d66a0929c Add "Copy description page URL" button in search tab
Closes #2371.
2015-08-04 11:18:46 +02:00
sledgehammer999
0520f01510 Merge pull request #3550 from Chocobo1/title_fix
Add back "qBittorrent" in program updater title, closes #3549.
2015-08-04 11:53:03 +03:00
Chocobo1
deaf322740 Add back "qBittorrent" in program updater title, closes #3549. 2015-08-04 13:07:14 +08:00
sledgehammer999
929cd30e33 Merge pull request #3517 from glassez/strict_aliasing
Fix strict-aliasing warning.
2015-08-03 02:50:22 +03:00
sledgehammer999
eef2a0a200 Merge pull request #3537 from ngosang/fixwarnings
Fix 3 compiler warnings
2015-08-02 16:10:24 +03:00
ngosang
fbb47ce08f Fix 3 compiler warnings 2015-08-02 14:22:47 +02:00
sledgehammer999
f746760ccf Merge pull request #3505 from pmzqla/search-close
searchengine: fix crash when a tab with a running search is closed
2015-08-02 15:21:30 +03:00
Gabriele
67c0f47928 searchengine: remove size constraints to search button 2015-08-02 14:04:11 +02:00
Gabriele
7c00e80f7a searchengine: use kill() instead of terminate() on Windows 2015-08-02 14:04:11 +02:00
Gabriele
3a9cf70228 searchengine: use a single string for the search results number label 2015-08-02 14:04:11 +02:00
Gabriele
0f35bac605 searchengine: don't use strings to determine the status of search processes
'&' symbols are dynamically added to strings, making comparisons
unreliable.
2015-08-02 14:04:07 +02:00
Gabriele
1b24feb4f4 searchengine: drop unused flag and related code 2015-08-02 13:53:12 +02:00
Gabriele
ee8a492954 searchengine: fix crash when closing tab with running search
If a tab is closed, the search process gets terminated. This can take
a while and by the time searchFinished() is executed, activeSearchTab
is null, leading to a crash. Fix this by waiting for the process to
terminate and make sure activeSearchTab is not null when used.
2015-08-02 13:49:42 +02:00
sledgehammer999
a217988dbb Merge pull request #3515 from glassez/parser
Fix HTTP header parsing. Closes #3511.
2015-07-31 02:38:04 +03:00
sledgehammer999
1217d8d021 Merge pull request #3497 from Chocobo1/ext_param_early
Fix "Run External Program Launches too Early" issue
2015-07-30 11:28:08 +03:00
Vladimir Golovnev (Glassez)
34da3e653d Fix strict-aliasing warning. 2015-07-30 09:38:25 +03:00
Vladimir Golovnev (Glassez)
ddb5c0052d Fix HTTP header parsing. Closes #3511. 2015-07-30 08:57:52 +03:00
sledgehammer999
8f1f57afe4 Remove obsolete Boost configurations. 2015-07-30 01:51:55 +03:00
sledgehammer999
bf3a6d1c20 Merge pull request #3455 from Chocobo1/label_fix
Fix '&' character in label name becomes accelerator key, closes #3454.
2015-07-29 23:30:25 +03:00
sledgehammer999
256793aad7 Merge pull request #3447 from glassez/filters
Fix label filter. Closes #3429.
2015-07-29 23:28:47 +03:00
sledgehammer999
a56c21551d Merge pull request #3458 from Chocobo1/path_fix
Use `rootPath()` in save path field
2015-07-29 23:24:51 +03:00
sledgehammer999
fce3a2d5c0 Merge pull request #3457 from Chocobo1/ext_param
Add more "Run External Program" parameters
2015-07-29 23:17:19 +03:00
sledgehammer999
675298bc73 Merge pull request #3483 from glassez/bandwidth
Fix Bandwidth Scheduler. Closes #3376.
2015-07-29 22:28:22 +03:00
sledgehammer999
6985b553af Merge pull request #3494 from glassez/drop_libtorrent_0
Drop libtorrent 0.16.x support.
2015-07-29 22:15:45 +03:00
Gabriele
885eb64df3 Follow project coding style. Issue #2192. 2015-07-29 19:58:22 +02:00
Chocobo1
2ce9aa20a5 Fix "Run External Program Launches too Early" issue, closes #2107. 2015-07-28 18:21:56 +08:00
sledgehammer999
4f2d74f793 Merge pull request #3374 from ngosang/webui_info
[Web UI] Add information in General tab
2015-07-28 03:03:45 +03:00
sledgehammer999
0e62a52e59 Merge pull request #3493 from ngosang/python
Improve Python detection
2015-07-28 02:59:25 +03:00
sledgehammer999
369561f8f7 Fix typo in string which prevents word substitution. 2015-07-28 02:05:29 +03:00
ngosang
69812bbf18 Converts the string "Seeded for" to lowercase 2015-07-26 14:33:11 +02:00
ngosang
e33570625f [Web UI] Fix friendlyUnit() implementation. Related to #2719 2015-07-26 14:31:11 +02:00
ngosang
2132704e1d [Web UI] Add information in General tab 2015-07-26 14:27:59 +02:00
ngosang
38a6f4cc34 Improve Python detection 2015-07-26 14:15:40 +02:00
sledgehammer999
626a3b10d3 [webui] Fix ugly 'C++' wrapping in About dialog. 2015-07-26 00:35:04 +03:00
sledgehammer999
c7fa778732 Merge pull request #2702 from pmzqla/rss-count
Add count of unread items to RSS tab label
2015-07-26 00:29:47 +03:00
Vladimir Golovnev (Glassez)
e72cc4eaf9 Drop libtorrent 0.16.x support. 2015-07-25 19:00:18 +03:00
Gabriele
c48407e038 Add count of unread items to RSS tab label
Closes #2681.
2015-07-25 11:57:03 +02:00
sledgehammer999
7c7bb14a93 Sync translations from Transifex and run lupdate. 2015-07-25 03:24:44 +03:00
sledgehammer999
f9dc76928c Merge pull request #3467 from ngosang/webui_refresh
[Web UI] Massive increase in performance.
2015-07-23 01:17:57 +03:00
sledgehammer999
5b7ea0e611 Merge pull request #3186 from glassez/geoip
New GeoIP manager.
2015-07-22 23:59:00 +03:00
sledgehammer999
5437674fdf Fix installing search plugin by drag-n-dropping file. 2015-07-22 23:29:57 +03:00
sledgehammer999
21f18d015d Fix installing search plugin from local file. 2015-07-22 23:29:50 +03:00
sledgehammer999
47d9c12f4b Fix segfault on Linux due to early initialization of global var.
Utils::Misc::pythonVersion() gets called before the Logger is initialized.
2015-07-22 23:29:43 +03:00
sledgehammer999
f6bbd9377f Improve checks for python. Print python version and path to log. 2015-07-22 23:29:35 +03:00
Chocobo1
3baec1c327 Add more "Run External Program" parameters, closes #3053, #238, #1291, #1522. 2015-07-22 15:25:31 +08:00
Chocobo1
bd657fe9ae Move option "Ignore transfer limits on local network" to Speed page 2015-07-22 14:52:24 +08:00
Vladimir Golovnev (Glassez)
64ebc5cfd6 Fix Bandwidth Scheduler. Closes #3376. 2015-07-22 08:54:23 +03:00
Vladimir Golovnev (Glassez)
84922dcdcf Fix need restart to enable/disable peer countries resolution. 2015-07-22 08:07:13 +03:00
Vladimir Golovnev (Glassez)
79976fbfce Implement new GeoIPManager class. 2015-07-22 08:06:51 +03:00
Vladimir Golovnev (Glassez)
c702a7e426 Improve DownloadManager.
Now we can use downloaded data directly without saving to file.
We also can disable redirection to Magnet URI handling (useful for
non-torrent files downloading).
2015-07-21 09:50:39 +03:00
Vladimir Golovnev (Glassez)
336519b7b5 Move compression functions to Utils::Gzip. 2015-07-21 09:37:32 +03:00
sledgehammer999
dfb2f8b3b3 Merge pull request #3469 from ngosang/search_py32
[search engine] Fix cpu_count in old Python versions
2015-07-21 01:58:01 +03:00
sledgehammer999
8b99e29dc0 Fixup previous commits on python search. 2015-07-21 01:56:14 +03:00
sledgehammer999
d6af4683bb Merge pull request #2624 from pmzqla/python
Prefer python3 over python2
2015-07-21 01:55:14 +03:00
ngosang
32c813eece [search engine] Fix cpu_count in old Python versions 2015-07-20 19:12:58 +02:00
ngosang
03f86a71de Change Queue buttons order in the Toolbar (GUI & Web UI) 2015-07-20 04:44:29 +02:00
ngosang
2db942e606 [Web UI] Massive increase in performance. 2015-07-20 02:13:44 +02:00
sledgehammer999
6668018b45 Static order of items in the transferlist menu. 2015-07-20 02:48:11 +03:00
sledgehammer999
f21cafb605 Merge pull request #3410 from ngosang/preview
Minor changes in the GUI (Preview file & Forece Resume)
2015-07-20 02:46:40 +03:00
sledgehammer999
3864a7fdc6 Fix compiler warning for unused variable. 2015-07-20 00:13:18 +03:00
Chocobo1
ff8f37b262 Save trimmed string in preference 2015-07-20 01:16:15 +08:00
sledgehammer999
783f17ec4d Merge pull request #3456 from Chocobo1/localhost
Fix translated localhost address (::ffff:127.0.0.1) is not recognized
2015-07-19 19:37:59 +03:00
sledgehammer999
2de5390c08 Merge pull request #3433 from ngosang/webui_extlinks
[Web UI] Open external links in a new window/tab
2015-07-19 18:57:59 +03:00
sledgehammer999
bfaa0789f0 Merge pull request #3428 from ngosang/webui_queuenum
[Web UI] Fix sort by queue number
2015-07-19 18:52:18 +03:00
sledgehammer999
eb73e7c1d4 Merge pull request #3150 from ngosang/add_peer_dialog
Add multiple peers in Peers addition dialog. Closes #1563, #2245, #3133, #1419, #3287, #1419
2015-07-19 18:33:10 +03:00
ngosang
63ed69789b Allow to copy all peers with a keyboard shortcut 2015-07-19 13:04:30 +02:00
sledgehammer999
983c19eb29 Merge pull request #2676 from pmzqla/copytrackers
Allow to copy all the trackers with a keyboard shortcut
2015-07-19 14:04:28 +03:00
ngosang
cef3c9a34d Add multiple peers in Peers addition dialog. Closes #1563, #2245, #3133, #1419, #3287, #1419 2015-07-19 13:04:00 +02:00
Chocobo1
030dd9eed8 Use rootPath() in save path field 2015-07-19 18:17:28 +08:00
Chocobo1
6721363f8c Resave in Qt designer 2015-07-19 16:04:25 +08:00
Chocobo1
8bb2e98b90 Fix localhost address (::ffff:127.0.0.1) is not recognized when connecting to WebUI 2015-07-19 14:48:58 +08:00
Chocobo1
58b600198f Fix '&' character in label name becomes accelerator key, closes #3454. 2015-07-19 13:41:44 +08:00
sledgehammer999
5281593bb6 Fix qt5 compilation with QtConcurrent. 2015-07-18 21:06:50 +03:00
sledgehammer999
0b20794672 Fixup speedwidget code. 2015-07-18 19:31:51 +03:00
Anton Lashkov
7b736b6ae3 Add speedwidget based on QGraphicsView 2015-07-18 00:54:36 +04:00
Vladimir Golovnev (Glassez)
d475ab3881 Fix label filter. Closes #3429. 2015-07-16 14:39:25 +03:00
sledgehammer999
b26724d12b Merge pull request #3437 from ngosang/extratorrent
[search engine] Remove the word 'torrent' in ExtraTorrent results
2015-07-16 00:47:23 +03:00
sledgehammer999
3d71ea5bc0 Merge pull request #3431 from Chocobo1/announce
DHT announce
2015-07-16 00:16:44 +03:00
ngosang
1f4d01e512 [Web UI] Changes in Force Resume icon and menu order 2015-07-15 23:12:12 +02:00
ngosang
9dbb2720b0 Changes in Force Resume icon and menu order 2015-07-15 22:46:24 +02:00
ngosang
808f07250e Minor changes in Preview File dialog 2015-07-15 22:46:24 +02:00
sledgehammer999
ed45ff89f8 Merge pull request #2861 from DoumanAsh/search_status_tab
Search status tab
2015-07-15 23:07:59 +03:00
sledgehammer999
d59440f99e Fix printing of the copyright symbol in the About dialog. 2015-07-15 22:45:13 +03:00
sledgehammer999
b80ced2b3a Don't add a torrent which doesn't have a matching .torrent file to its .fastresume file. Closes #3346. 2015-07-15 21:01:07 +03:00
Chocobo1
8873900df3 Also reannounce to DHT when "Force reannounce to all trackers" is selected 2015-07-15 07:05:04 +08:00
Chocobo1
4d6bde9731 Remove announce to DHT after editing tracker list 2015-07-15 07:05:04 +08:00
Chocobo1
fb1772f019 Rewrite TrackerList::reannounceSelected(), now it can force reannounce DHT 2015-07-15 07:05:04 +08:00
ngosang
cc503b36e8 [search engine] Remove the word 'torrent' in ExtraTorrent results 2015-07-15 00:27:09 +02:00
ngosang
0fe99fe10f [Web UI] Open external links in a new window/tab 2015-07-14 12:16:01 +02:00
DoumanAsh
e2aa8056af Search status uses tab's status 2015-07-14 09:03:27 +03:00
ngosang
10bba1a632 [Web UI] Fix sort by queue number 2015-07-14 01:48:05 +02:00
sledgehammer999
5e400d3117 Merge pull request #3377 from BlaXpirit/recheck-confirmation-setting
Implement an option to disable confirmation of torrent recheck
2015-07-14 00:32:53 +03:00
sledgehammer999
39e0c560cf Update color scheme of completed.png icon. 2015-07-13 23:44:55 +03:00
sledgehammer999
bf13238ccf Merge pull request #3385 from ngosang/webui_addtracker
[Web UI] Fix empty trackers addition
2015-07-13 23:37:14 +03:00
sledgehammer999
5b56717501 Merge pull request #3394 from ngosang/json3
[Web UI] Fix API Content Types. Closes #3393
2015-07-13 23:36:34 +03:00
sledgehammer999
de84bb9824 Merge pull request #3407 from glassez/seqdl
Fix restore sequential download state.
2015-07-13 23:35:17 +03:00
DoumanAsh
496f843016 Replace indent to 4 spaces 2015-07-13 09:31:23 +03:00
ngosang
ac74f14408 Increase API_VERSION 2015-07-12 23:08:43 +02:00
ngosang
3a44b94cc7 [Web UI] New option Web UI port UPNP. Closes #3358 2015-07-12 23:07:49 +02:00
sledgehammer999
948b2c0410 Merge pull request #3375 from ngosang/completed_filter
Add Force Seeding state to Completed filter
2015-07-12 15:44:01 +03:00
sledgehammer999
d4151c1832 Merge pull request #3395 from ngosang/content_percent
Fix progress calculation in Content tab. Closes #2639 Closes #2752
2015-07-12 15:42:46 +03:00
sledgehammer999
365d039209 Merge pull request #3386 from ngosang/webuibug
[Web UI] Fix an error in Content tab when the torrent doesn't have me…
2015-07-12 14:39:13 +03:00
sledgehammer999
40c9727cb9 Merge pull request #3383 from ngosang/webui_port
[Web UI] Ports between 1 and 65535 as in the GUI. Closes #1602
2015-07-12 14:33:39 +03:00
Vladimir Golovnev (Glassez)
8e03f01518 Fix restore sequential download state. 2015-07-12 13:56:24 +03:00
ngosang
6413537f45 [Web UI] Fix API Content Types. Closes #3393 2015-07-12 01:29:03 +02:00
ngosang
e20a24ab2e Fix progress calculation in Content tab. Closes #2639 Closes #2752 2015-07-12 01:27:16 +02:00
ngosang
47c31c8b03 [Web UI] Ports between 1 and 65535 as in the GUI. Closes #1602 2015-07-12 01:24:34 +02:00
ngosang
f0d32e2cde [Web UI] Torrent download from hash. Closes #1173 2015-07-12 01:21:09 +02:00
ngosang
62b803e268 [Web UI] Fix empty trackers addition 2015-07-11 15:35:53 +02:00
ngosang
9ea56ea5d4 [Web UI] Fix an error in Content tab when the torrent doesn't have metadata 2015-07-09 18:11:04 +02:00
Oleh Prypin
7474c05209 Implement an option to disable confirmation of torrent recheck 2015-07-08 23:29:31 +03:00
sledgehammer999
647140c7c7 Merge pull request #3371 from ngosang/webuialterdl
[Web UI] Fix alternative global rate limits. Closes #3359
2015-07-08 21:19:08 +03:00
ngosang
ac2c8a3d30 Add Force Seeding state to Completed filter 2015-07-08 16:01:10 +02:00
ngosang
ee44fd54b6 [search engine] Fix Python 2 implementation of Torrentz 2015-07-08 11:04:50 +02:00
ngosang
0ed8ea9599 [Web UI] Additional checks in Options dialog 2015-07-08 09:53:01 +02:00
ngosang
d9ef7c1b32 [Web UI] Reorder Options dialog code 2015-07-08 09:06:41 +02:00
ngosang
357334fb46 [Web UI] Fix alternative global rate limits. 2015-07-08 06:47:59 +02:00
ngosang
768e87b0da [Web UI] Fix missing torrent states. 2015-07-04 01:04:10 +02:00
sledgehammer999
14187978c0 Update Chinese locale names for WebUI too. 2015-07-03 22:52:08 +03:00
sledgehammer999
cac91737ac Sync translations from Transifex and run lupdate. 2015-07-03 22:34:36 +03:00
sledgehammer999
0b18e7bd60 Add unicodestrings.h to core.pri 2015-07-03 22:22:14 +03:00
sledgehammer999
61705fdd42 Partially revert fb7ba92f6 and split the Chinese locales into 3.
Chinese Simplified, Chinese Traditional(Taiwan), Chinese Traditional(Hong Kong).
Closes #3262.
2015-07-03 22:20:32 +03:00
sledgehammer999
6dd3795b7a Fix Properties bar size when started minimized to tray. Closes #3206. 2015-07-03 22:09:37 +03:00
sledgehammer999
2e0c3f8751 Merge pull request #3329 from glassez/state
Fix missing torrent states. Closes #3302.
2015-07-03 21:58:57 +03:00
sledgehammer999
e1e8471728 Merge pull request #3324 from pmzqla/sort-eta-master
Fix sorting torrents by ETA
2015-07-03 21:55:52 +03:00
Heiko Becker
3c66997427 Add missing QDataStream include
Fixes building with Qt 5.5.0-beta.
2015-06-30 22:04:34 +03:00
Vladimir Golovnev (Glassez)
5ec2af7b5a Fix missing torrent states. 2015-06-30 11:14:41 +03:00
Gabriele
d3b23e4b81 Fix sorting torrents by ETA
Same as #2966.
Related issue: #2965.
2015-06-29 21:03:44 +02:00
Gabriele
d76a84048b Increase priority value of "High"
It was observed that setting the priority of a file to High has almost
no effect, so increase its value.
2015-06-29 02:01:51 +03:00
Gabriele
f21fbff1a8 Use enums instead of values when dealing with file priorities
Manually backported commit 10880e10f1 from v3_2_x branch.
2015-06-29 02:00:50 +03:00
sledgehammer999
c17a56cb8b Merge pull request #3318 from ngosang/searchorder
Fix column sort in search engine. Closes #2621
2015-06-29 01:42:17 +03:00
ngosang
b23608ec35 Fix column sort in search engine. Closes #2621 2015-06-28 23:51:09 +02:00
sledgehammer999
a8df699441 Merge pull request #3197 from ngosang/webui_websources
[Web UI] Add Web Seeds (HTTP Sources) tab
2015-06-28 19:34:23 +03:00
sledgehammer999
1b430abb16 Don't use a default upload limit. Closes #3275. 2015-06-28 19:21:47 +03:00
sledgehammer999
e4062e0f35 Sync translations from Transifex and run lupdate. 2015-06-28 18:18:44 +03:00
ngosang
e6f2926ccd [Web UI] Don't update the tabs if tab's panel is collapsed 2015-06-28 16:36:46 +02:00
ngosang
263d45ca9d [Web UI] Use camelCase in variable names 2015-06-28 16:36:46 +02:00
ngosang
8e4b9f30bb [Web UI] Add Web Seeds (HTTP Sources) tab 2015-06-28 16:36:45 +02:00
sledgehammer999
2db4a661ee Merge pull request #3251 from Chocobo1/unicode_fix
Fix MSVC2013 complains on Unicode characters
2015-06-28 16:12:47 +03:00
sledgehammer999
3c6ee3d57f Merge pull request #3317 from ngosang/search_eng
Cosmetics changes in search engine
2015-06-28 16:11:20 +03:00
Chocobo1
e2a1211513 Mention github contributors in thanks.html 2015-06-28 21:08:21 +08:00
Chocobo1
436b3a472a Move translators & thanks to its own file
Add HTML header & cleanup
2015-06-28 21:08:20 +08:00
ngosang
326a74425f Cosmetics changes in search engine 2015-06-28 14:38:17 +02:00
sledgehammer999
a217d97fda Merge pull request #3304 from Chocobo1/menu_cap
Capitalize menu item
2015-06-28 15:17:37 +03:00
sledgehammer999
6959084f98 Merge pull request #3315 from Chocobo1/disk_space
Update disk space label after changing partition, closes #3309.
2015-06-28 15:16:29 +03:00
sledgehammer999
216bf9b477 Merge pull request #3279 from ngosang/webui_newoptions
[Web UI] Add new options
2015-06-28 15:15:35 +03:00
Chocobo1
3efb311076 Better message for users 2015-06-28 19:37:31 +08:00
ngosang
3ac9b2525e Increase API_VERSION due to changes in #3279, #3197, #3226 and #3040 2015-06-28 13:33:56 +02:00
ngosang
831b47b8f9 [Web UI] Add new options 2015-06-28 13:33:51 +02:00
ngosang
ff10eafcbc Follow project coding style. Issue #2192. 2015-06-28 13:32:57 +02:00
Chocobo1
38c0dbfc95 Update disk space label after changing partition, closes #3309. 2015-06-28 19:32:54 +08:00
Chocobo1
e739e81205 Fix compilation on MSVC2013 by moving unicode strings to
"unicodestrings.h". Closes #3059.
2015-06-28 19:18:57 +08:00
ngosang
b249b461d7 [search engine] Update TorrentReactor 2015-06-28 12:54:34 +02:00
sledgehammer999
af79ba433c Merge pull request #3307 from ngosang/extratorrentimp
[search engine] Update ExtraTorrent
2015-06-28 13:46:08 +03:00
sledgehammer999
14013c80c0 Merge pull request #3270 from Chocobo1/info_box
Reorder layout in information box
2015-06-28 13:45:25 +03:00
ngosang
85a7c7303d [search engine] Update ExtraTorrent 2015-06-28 12:36:33 +02:00
sledgehammer999
f94214ae14 Merge pull request #3291 from ngosang/torrent_creator
Add 16 KiB, 8 MiB and 16 MiB piece sizes in Torrent Creator. Closes #2656
2015-06-28 13:31:06 +03:00
sledgehammer999
ca4fbe40dd Merge pull request #3306 from ngosang/torrentzimp
[search engine] Update Torrentz
2015-06-28 13:30:31 +03:00
ngosang
91818417be Add 16 KiB, 8 MiB and 16 MiB piece sizes in Torrent Creator 2015-06-28 12:26:24 +02:00
ngosang
577ace4971 Follow project coding style. Issue #2192. 2015-06-28 12:26:03 +02:00
Chocobo1
776d91f663 Add connectionsLimit() back 2015-06-28 18:15:17 +08:00
sledgehammer999
b9ed94a098 Merge pull request #3292 from glassez/resumedata
Fix save resume data for torrents w/o metadata. Closes  #1488.
2015-06-28 12:43:00 +03:00
sledgehammer999
800630a813 Merge pull request #3290 from glassez/trackers
Fix trackers removing (#2892 regression).
2015-06-28 12:42:34 +03:00
sledgehammer999
4854a1b2ee Merge pull request #3311 from ngosang/btdiggimp
[search engine] Update BTDigg
2015-06-28 12:32:47 +03:00
ngosang
2afa282190 [search engine] Update BTDigg 2015-06-27 21:33:50 +02:00
ngosang
2b2ffca7d0 [search engine] Update Torrentz 2015-06-27 21:00:47 +02:00
ngosang
650e7018a7 [search engine] Update KickassTorrents 2015-06-27 18:25:20 +02:00
Chocobo1
1e0ac5c5f1 Capitalize menu item, missed in b4a855f. 2015-06-26 14:16:57 +08:00
Vladimir Golovnev (Glassez)
b9c087f46c Fix save resume data for torrents w/o metadata. 2015-06-24 18:49:55 +03:00
Chocobo1
9d5cfbcda9 Preserve plain text formatting 2015-06-24 19:28:31 +08:00
Vladimir Golovnev (Glassez)
ffe6292237 Fix trackers removing. 2015-06-24 14:09:43 +03:00
sledgehammer999
9d97c05889 Merge pull request #3282 from ngosang/search_check
[search engine] Fix novaprinter.py version number
2015-06-23 18:22:13 +03:00
sledgehammer999
2658b39434 Merge pull request #3283 from glassez/rss
Fix add torrent dialog is not shown (#2892 regression).
2015-06-23 18:21:24 +03:00
Vladimir Golovnev (Glassez)
4752fa5301 Fix ugly 'C++' wrapping in About dialog. 2015-06-23 13:22:52 +03:00
Vladimir Golovnev (Glassez)
f40d3d1fc6 Fix add torrent dialog is not shown. 2015-06-23 11:19:34 +03:00
ngosang
d7ffabe7ca [search engine] Fix novaprinter.py version number 2015-06-23 09:46:19 +02:00
Chocobo1
b318f54fdf Force set "plain text" format to reduce attack vector. 2015-06-22 22:10:33 +08:00
Chocobo1
661ddd75b6 Allow wordWrap for "Save Path" & "Comment" 2015-06-22 13:32:32 +08:00
Vladimir Golovnev (Glassez)
64c8f61bb1 Improve TorrentModel class. 2015-06-21 16:28:21 +03:00
Vladimir Golovnev (Glassez)
347832d852 Fix torrent renaming (3715e8d2 regression). 2015-06-21 13:32:48 +03:00
Chocobo1
50b3a24371 Change Comment field from QTextBrowser to QLabel 2015-06-21 13:52:11 +08:00
Chocobo1
4d5512dcca Reorder layout in information box 2015-06-21 13:20:19 +08:00
sledgehammer999
2e6c890883 Partially revert 30f21259f8.
Fixes Linux issue for when the theme doesn't have a corresponding icon.
2015-06-21 00:56:18 +03:00
sledgehammer999
f94d733c62 Minimize to tray only if the relevant option is enabled. 2015-06-20 23:28:40 +03:00
sledgehammer999
9032808112 Fix sorting by queue. 2015-06-20 20:05:49 +03:00
sledgehammer999
a22137e06e Merge pull request #3240 from ngosang/webui_interface
[Web UI] Changes in menus, new features and reordered Options.
2015-06-20 19:31:06 +03:00
ngosang
973518694e [Web UI] Tabs indentation replaced with spaces 2015-06-20 18:18:36 +02:00
ngosang
d6caf1c839 [Web UI] Reorder the tabs/groups in Options window 2015-06-20 18:04:23 +02:00
ngosang
6f7dca1f83 [Web UI] Option to hide Top Toolbar 2015-06-20 18:04:18 +02:00
sledgehammer999
dbbf1a8fce Merge pull request #2690 from Chocobo1/dev4
Don't close downloadFromURL dialog when showing empty url warning.
2015-06-20 18:50:51 +03:00
sledgehammer999
27e18f0eb8 Merge pull request #2643 from mayankasthana/tab_FocusChange
Download-from-URL textbox change focus on tab key
2015-06-20 18:43:37 +03:00
ngosang
bbc667cb78 [Web UI] Changes in menus to keep the client's style 2015-06-20 17:36:13 +02:00
sledgehammer999
74d757f0f1 Delete tempfile when downloading favicon.ico. Closes #3257. 2015-06-20 18:21:20 +03:00
sledgehammer999
a224650281 Merge pull request #3078 from Chocobo1/props_widget
Revamp general tab info, closes #982
2015-06-20 16:50:32 +03:00
sledgehammer999
54abcfcd93 Merge pull request #3260 from glassez/sort
Fix torrent state sort order (#2892 regression).
2015-06-20 16:40:47 +03:00
sledgehammer999
627d74233b Merge pull request #3245 from glassez/upgrade
Upgrade to v3.3
2015-06-20 16:33:32 +03:00
Vladimir Golovnev (Glassez)
b29f6916cb Implement upgrage code. 2015-06-20 16:23:10 +03:00
Vladimir Golovnev (Glassez)
7041a96fda Fix torrent state sort order. 2015-06-20 16:03:56 +03:00
Chocobo1
6bc42cfd1a Add functionality to new data fields, cleanups 2015-06-20 20:42:44 +08:00
Chocobo1
bd8b8a8c8f Use warning message box instead of critical 2015-06-20 20:36:35 +08:00
sledgehammer999
cf1a62cec3 Merge pull request #2719 from Chocobo1/dev6
Fix potential out-of-bound access in misc::friendlyUnit()
2015-06-20 02:46:47 +03:00
sledgehammer999
fd6fcffa67 Merge pull request #3247 from glassez/ratio
Fix ratio limit for new torrents. Closes #3210.
2015-06-19 18:53:40 +03:00
sledgehammer999
75fecf9645 Merge pull request #3226 from ngosang/webui_dhtport
[Web UI] Remove DHT port setting. Closes #3225
2015-06-18 23:37:53 +03:00
Vladimir Golovnev (Glassez)
04f3f9d29d Fix ratio limit for new torrents. 2015-06-18 16:28:52 +03:00
sledgehammer999
fb7ba92f69 Rename Chinese translation files. Closes #2936. 2015-06-17 23:06:08 +03:00
sledgehammer999
c259666e43 Merge pull request #2803 from Chocobo1/shutdown
WebUI: add delay in shutdown command in order to send out response msg
2015-06-17 22:58:49 +03:00
Gabriele
6609d3e89f Don't use list of versions for the Python fallback detection on Windows
Always pick the newest versions among those installed.
2015-06-17 21:30:35 +02:00
Gabriele
f4c44ce128 Don't specify the Python version required in the notification
Both python2 and python3 are supported.
2015-06-17 21:30:35 +02:00
Gabriele
a8276dd70f Update link to the Windows Python installer
From v2.7.3 to v3.4.3.
2015-06-17 21:30:35 +02:00
Gabriele
0c23d22472 Show notification if Python is not found and a search is started
Also, don't bother starting a search if it's known that Python is
not available.
2015-06-17 21:30:12 +02:00
Gabriele
e34cc79dad Use python3 and python2 instead of python on Linux
Prefer python3 over python2 when both are available.

Both python2 and python3 should always exists.
More info at: http://legacy.python.org/dev/peps/pep-0394/
2015-06-17 21:29:20 +02:00
Vladimir Golovnev (Glassez)
de712c6ba9 Use native QDir::removeRecursively() in Qt5. 2015-06-17 19:19:56 +03:00
Vladimir Golovnev (Glassez)
8cc9c64ff8 Fix resume torrents without metadata. 2015-06-17 19:06:48 +03:00
Chocobo1
64665146e1 Expose more data fields 2015-06-17 23:20:34 +08:00
Chocobo1
cdec6c9027 Add new data fields, capitialize labels, cleanups 2015-06-17 23:20:34 +08:00
Vladimir Golovnev (Glassez)
d76c4554e2 Fix MaxRatio ignoring. 2015-06-17 14:45:47 +03:00
Vladimir Golovnev (Glassez)
3d09f579d0 Fix torrent creation date loss. 2015-06-17 11:21:41 +03:00
Chocobo1
e95a017e33 Fix potential out-of-bound access of units[i] 2015-06-17 08:03:51 +08:00
Vladimir Golovnev (Glassez)
77b3a0c4cd Fix crash when cancel open file dialog.
Closes #3232.
2015-06-16 09:09:08 +03:00
ngosang
8340abbe63 [Web UI] Remove DHT port setting. Closes #3225 2015-06-15 11:00:36 +02:00
sledgehammer999
3f8e76ce93 Clear missing files flag when resuming or force rechecking. Fixes issues in #2750. 2015-06-15 00:48:28 +03:00
sledgehammer999
a2c48646ae New translation: Indonesian. 2015-06-14 23:43:21 +03:00
sledgehammer999
78f5b960a0 Sync translations from Transifex and run lupdate. 2015-06-14 23:28:28 +03:00
sledgehammer999
f6236d13d1 Merge pull request #3190 from Chocobo1/ratio_fix_master
Improve ratio calculation formula
2015-06-14 23:02:34 +03:00
sledgehammer999
6b56a8accf Merge pull request #3211 from yurivict/compile-issues
Added missing include <cstdlib>
2015-06-14 21:50:13 +03:00
Chocobo1
6e1bfdef4c Fix additional file included in 32a712f 2015-06-15 00:02:07 +08:00
sledgehammer999
e4282c10c7 Merge pull request #2847 from Chocobo1/move_stats
Revamp menu items
2015-06-14 20:21:27 +03:00
Chocobo1
36da49667a Resave in Qt Designer 2015-06-14 20:01:14 +08:00
Chocobo1
ade1936f9c Remove menu items: "Visit Website" and "Report a Bug".
Many issues opened on github should be asked on forum first, and the links are already present in "About" window.
2015-06-14 20:01:14 +08:00
Chocobo1
580642b08e Rename "Execution Log" to "Log".
Rename "When Downloads Done" to "On Downloads Done".
2015-06-14 20:01:14 +08:00
Chocobo1
b4a855f4c1 Move statistics from Tools to View
Reorder & add separators in Help menu

Rename `Auto-Shutdown on downloads completion` to `When downloads done`

Capitalize menu items, modify accelerator
2015-06-14 20:01:11 +08:00
Chocobo1
32a712f005 Add checkbox option for IpFilterTrackers, closes #3154. 2015-06-14 19:10:11 +08:00
Yuri
ea2b2937b9 Added missing include <cstdlib> for rand(3) 2015-06-14 03:17:12 -07:00
Yuri
a86961a22e Added missing include <cstdlib> for rand(3) 2015-06-14 03:14:27 -07:00
Chocobo1
2299580dc9 Improve ratio calculation formula. Closes #3096. 2015-06-14 17:45:40 +08:00
sledgehammer999
77786bb8bb Add translator to credits. 2015-06-14 12:28:08 +03:00
sledgehammer999
9ee67364c2 Merge pull request #3209 from ngosang/minor_fixes
Code clean up
2015-06-14 11:40:41 +03:00
ngosang
4a76526417 Code clean up
This changes were proposed by @PiotrNawrot in these PRs: #2967, #2970.
2015-06-14 10:35:32 +02:00
dartraiden
8ac83cfd42 Fixed typos, spelling correction 2015-06-14 10:55:46 +03:00
sledgehammer999
f5b0008158 Merge pull request #2805 from ngosang/typo_revision
Changes in typography
2015-06-13 22:06:12 +03:00
sledgehammer999
1be26cf2bd Merge pull request #2808 from ngosang/AnnounceToAllTrackers
Change default preferences
2015-06-13 21:39:45 +03:00
ngosang
e01a61d816 changes in typography 2015-06-13 20:04:20 +02:00
sledgehammer999
25e04ee2f3 Merge pull request #3191 from Chocobo1/neg_loop_master
Fix potential negative loop bound
2015-06-13 21:03:41 +03:00
sledgehammer999
4d848e99f0 Merge pull request #3004 from ngosang/cppcheck_fixes
Cppcheck: scope reduction & unused variables
2015-06-13 20:16:53 +03:00
sledgehammer999
157b1eadfa Merge pull request #3203 from glassez/unistd
Fix qbittorrent-nox compilation.
2015-06-13 09:33:44 +03:00
Vladimir Golovnev (Glassez)
5798fb959d Fix qbittorrent-nox compilation. 2015-06-13 09:20:16 +03:00
sledgehammer999
35e04a795d Merge pull request #3194 from glassez/save_path
Fix BitTorrent::TorrentHandle class.
2015-06-13 01:51:27 +03:00
sledgehammer999
93bbda851a Merge pull request #3188 from glassez/datetime
Fix time_t 0 special meaning.
2015-06-13 01:46:12 +03:00
sledgehammer999
2c34aa4ea2 Merge pull request #3179 from DoumanAsh/legittorrents_update
[search engine] Update Legit Torrent to remove sgmllib
2015-06-13 01:44:28 +03:00
sledgehammer999
4f5ce16dcb Merge pull request #3176 from DoumanAsh/py3_remove_cache
[search engine] Remove python3 cache during updateNova()
2015-06-13 01:38:58 +03:00
DoumanAsh
033817f70b [search engine] Update Legit Torrent to remove sgmllib 2015-06-12 18:23:56 +03:00
Vladimir Golovnev (Glassez)
9c28977001 Fix adjustActualSavePath() when torrent is moving. 2015-06-12 15:37:52 +03:00
Vladimir Golovnev (Glassez)
a55a27508a Fix append .!qB extension when it disabled. 2015-06-12 15:35:20 +03:00
Chocobo1
817b595222 Fix potential negative loop bound.
QTorrentHandle::num_files() could return -1 in these cases.
2015-06-12 17:09:22 +08:00
Vladimir Golovnev (Glassez)
56df8c2dd0 Fix time_t 0 special meaning.
Return null QDateTime object when converting from 0 time_t value.
2015-06-12 09:36:01 +03:00
ngosang
3715e8d2c8 Change default preferences 2015-06-12 02:09:01 +02:00
ngosang
ad2a18b3bc Changes in User-Agent 2015-06-12 01:30:01 +02:00
ngosang
3eb61cfe83 Cppcheck: scope reduction & unused variables 2015-06-12 01:16:21 +02:00
DoumanAsh
1222dab6f8 [search engine] Remove python3 cache during updateNova() 2015-06-12 01:30:35 +03:00
ngosang
930161a0dd [Search engine] Show the version of search engines 2015-06-11 23:37:50 +02:00
sledgehammer999
3aa0a845cd Merge pull request #2892 from glassez/bittorrent
Core classes redesign (Issue #2433).
2015-06-11 23:54:05 +03:00
sledgehammer999
cc8419d344 Fix python detection from reigstry when multiple versions are installed. Update fallback mechanism for newer versions. 2015-06-11 23:45:18 +03:00
sledgehammer999
f3dd93a42c Merge pull request #2832 from pmzqla/rss-liveupdate
Update matching RSS articles while editing rules
2015-06-11 22:56:31 +03:00
ngosang
cd5f904b53 Minor fixes in search engines 2015-06-11 19:06:29 +02:00
ngosang
274cde0396 [search engine] Add Demonoid search engine 2015-06-11 18:24:18 +02:00
DoumanAsh
920aefddde [search engine] Final enhancements. 2015-06-11 07:52:27 +03:00
DoumanAsh
7dafb384e9 [search engine] Cosmetic update TorrentReactor 2015-06-11 07:47:39 +03:00
DoumanAsh
2fc1487603 [search engine] re-factoring of code 2015-06-11 07:47:37 +03:00
DoumanAsh
d6d0f422f5 [search engine] engines update 2015-06-11 07:45:55 +03:00
DoumanAsh
bef8106d0f [search engine] Nova2 multiprocessing 2015-06-11 07:45:53 +03:00
sledgehammer999
e502ce38ec Merge pull request #2670 from DoumanAsh/safe_url_retrieve
[search engine] Exception free url_retrieve
2015-06-11 02:22:02 +03:00
Vladimir Golovnev (Glassez)
7d73bddfd2 Split some "header only" sources. 2015-06-10 10:58:20 +03:00
DoumanAsh
86a0eaf317 Exception free retrieve_url()
Set 2 second timeout and handle any possible connection error
Return empty string to engine in case of connection exception
2015-06-10 08:15:23 +03:00
Vladimir Golovnev (Glassez)
5f288d228d Fix coding style (Issue #2192). 2015-06-09 21:30:57 +03:00
Vladimir Golovnev (Glassez)
191cdc2849 Move utilities to core/utils folder.
Also move the names to Utils namespace.
2015-06-09 21:30:56 +03:00
Vladimir Golovnev (Glassez)
427688cb34 Remove unused sources. 2015-06-09 21:30:53 +03:00
Vladimir Golovnev (Glassez)
d16d1fdb3a Redesign main core classes. 2015-06-09 21:30:42 +03:00
sledgehammer999
832272bf3a Merge pull request #2672 from DoumanAsh/abort_search_on_exit
Aborting search engine process during closure. Close #2671
2015-06-09 01:49:36 +03:00
sledgehammer999
d87cea1fb7 Merge pull request #2880 from Chocobo1/alluppercase
Use AllUppercase for label text
2015-06-08 01:41:01 +03:00
sledgehammer999
dabbc49c20 Merge pull request #2882 from pmzqla/openfile-enter
Allow to Open files from the properties pane by pressing "Enter"
2015-06-08 01:22:40 +03:00
sledgehammer999
9daf9e612b Merge pull request #2935 from Chocobo1/add_tray_menu
Add "Add link to torrent" menu in TrayIconMenu. Closes #2918.
2015-06-08 00:51:38 +03:00
sledgehammer999
46e2e5342b Merge pull request #2996 from Chocobo1/tray_icon
Enable to choose dark/light tray icons on all platforms.
2015-06-03 23:59:16 +03:00
sledgehammer999
c682d87a65 Merge pull request #2999 from LazyBui/master
Treating Alt Global Rate Limits Like Regular Global Rate Limits
2015-06-03 23:48:13 +03:00
sledgehammer999
101b0ee58e Merge pull request #3011 from ngosang/start_minimize
Fix Start Minimized checkbox in Options
2015-06-03 23:07:32 +03:00
Vladimir Golovnev (Glassez)
60c0939e05 Fix coding style (Issue #2192).
Also split filesystemwatcher.h into .h/.cpp files.
2015-06-03 22:11:44 +03:00
Vladimir Golovnev (Glassez)
d32bb52390 Don't add core to INCLUDEPATH. 2015-06-03 22:11:43 +03:00
Vladimir Golovnev (Glassez)
4b5e7e6168 Move network related code to core/net. 2015-06-03 22:11:41 +03:00
Vladimir Golovnev (Glassez)
3eeed813d6 Implement new download manager. 2015-06-03 22:11:40 +03:00
Vladimir Golovnev (Glassez)
f1bce0b8e0 Fix downloadthread.* coding style (Issue #2192). 2015-06-03 22:11:39 +03:00
Vladimir Golovnev (Glassez)
98dfb6302d Fix shutdownconfirm.* coding style (Issue #2192). 2015-06-03 22:11:38 +03:00
Vladimir Golovnev (Glassez)
d87a9bf7ec Move GUI-related sources into gui subdir. 2015-06-03 22:11:36 +03:00
sledgehammer999
2b7c47c789 Merge pull request #3092 from Chocobo1/focus_default
Change default focus button in various dialog, closes #3085
2015-06-03 21:35:17 +03:00
sledgehammer999
bafb189244 Merge pull request #3136 from Chocobo1/exit
Change option text "Confirmation on exit when torrents are active"
2015-06-03 21:05:00 +03:00
Chocobo1
ab91fb87ea Change option text "Confirmation on exit when torrents are active" 2015-06-03 13:25:36 +08:00
sledgehammer999
2ad10ea47e Merge pull request #3006 from ngosang/translate_search
Make strings translatable in search engine
2015-06-01 17:08:37 +03:00
sledgehammer999
fc28f261cf Merge pull request #2534 from ngosang/disable_chbox
Disable Auto piece size checkbox when creating a new torrent
2015-06-01 16:55:09 +03:00
sledgehammer999
a84518d69f Merge pull request #2542 from ngosang/search_tab
Change width of columns in search tab. Closes #764
2015-06-01 16:33:31 +03:00
sledgehammer999
17cba898e9 Merge pull request #3005 from ngosang/wasted
Web UI: Display wasted data with friendly units. Closes #2994
2015-06-01 16:03:59 +03:00
sledgehammer999
736f20538d Merge pull request #3040 from ngosang/webui_global_slot
Web UI: New config - Global maximum number of upload slots. Closes #2997
2015-06-01 15:57:44 +03:00
sledgehammer999
6cee7483ba Merge pull request #3041 from ngosang/webui_fix_torrentinfo
Web UI: Fix Max connections and Time active in transfer panel. Closes #2993
2015-06-01 15:26:50 +03:00
sledgehammer999
50a5e830ac Merge pull request #3086 from ngosang/webui_titlebar
Web UI: Changes in title bar, translatable strings and style
2015-06-01 15:21:57 +03:00
sledgehammer999
81b3517166 Merge pull request #3021 from ngosang/improve_torrentz
[search engine] Improve torrentz engine to return more results
2015-06-01 13:32:58 +03:00
sledgehammer999
14b5d15268 Merge pull request #3020 from ngosang/fix_piratebay
[search engine] Fix thepiratebay engine. Closes #3012
2015-06-01 13:29:59 +03:00
Chocobo1
e75de01809 Set default focus to no button in exit confirm box 2015-05-26 15:03:42 +08:00
Chocobo1
a29f2dcfaa Set default focus to ok button in add new torrent dlg 2015-05-24 15:12:07 +08:00
Chocobo1
2b2bc11d7d Set default focus to cancel button in delete confirm dlg, closes #3085 2015-05-24 15:11:37 +08:00
ngosang
7129ad47f4 Web UI: Minor changes in style 2015-05-23 22:18:52 +02:00
ngosang
dcdb319653 Web UI: Complete translatable strings 2015-05-23 20:35:25 +02:00
ngosang
c5ce99ebec Web UI: Changes in title bar 2015-05-23 19:20:04 +02:00
ngosang
e46c238f15 [search engine] Fix thepiratebay. Closes #3012 2015-05-20 08:01:41 +02:00
LazyBui
23ec562375 Making alternate download/upload configuration behave like global download/upload configuration so as to allow boundless down/up 2015-05-17 12:58:29 -05:00
sledgehammer999
2c1d76c87f Merge pull request #3027 from ngosang/fix_webui_all
Web UI: Fix resumeAll and pauseAll. Closes #3016
2015-05-17 18:44:11 +03:00
ngosang
8b06f72a94 Web UI: Fix Max connections and Time active in transfer information 2015-05-17 15:47:37 +02:00
ngosang
2e05777dc5 Web UI: New config - Global maximum number of upload slots 2015-05-17 14:40:34 +02:00
ngosang
dd71355e8a Web UI: Fix login and logout relative URLs 2015-05-17 13:48:06 +02:00
ngosang
a90ec4cce7 Web UI: Fix resumeAll and pauseAll. Closes #3016 2015-05-15 22:49:03 +02:00
Chocobo1
f1c2eae264 Fix wrong path for icons.qrc 2015-05-16 01:08:45 +08:00
ngosang
28fcbe9bc5 [search engine] Improve torrentz engine to return more results 2015-05-15 18:34:28 +02:00
ngosang
b18138bad0 Change width of columns in search tab. Closes #764 2015-05-15 14:25:51 +02:00
ngosang
0ef728d385 Fix Start Minimized checkbox in Options 2015-05-14 21:48:09 +02:00
ngosang
bd6afc2d86 Make strings translatable in seach engine 2015-05-14 14:39:30 +02:00
ngosang
de3c84bd0b Web UI: Display wasted data with friendly units. Closes #2994 2015-05-14 13:35:48 +02:00
sledgehammer999
88237fbd1e Update Copyright year. 2015-05-13 23:23:53 +03:00
Chocobo1
30f21259f8 Enable to choose dark/light tray icons on all platforms. 2015-05-13 21:50:15 +08:00
LazyBui
be62c34e46 Removing the confusion caused by moving GeoIP code/.dat to a different directory 2015-05-13 00:15:10 -05:00
sledgehammer999
a3574d3e28 Merge pull request #2846 from Noctem/fixVariableNames
Fix variable names
2015-05-10 17:53:26 +03:00
Chocobo1
1d6263385b Use AllUppercase for label text 2015-05-10 14:13:25 +08:00
sledgehammer999
1ba8ce7345 Sync translations from Transifex and run lupdate. 2015-05-10 03:03:07 +03:00
sledgehammer999
8a5d2208a5 Fix UI freeze when right clicking on a torrent with libtorrent 1.0.x.
Thanks to pmzqla for finding the root issue.
Closes #2365 #2388.
2015-05-10 02:31:35 +03:00
sledgehammer999
18e2bb6f60 Fix updating of Error/Warning trackers counter. 2015-05-09 20:39:38 +03:00
sledgehammer999
6c579950f6 Correctly detect trackers with invalid TLDs or IPv4/IPv6 addresses. 2015-05-09 20:39:29 +03:00
sledgehammer999
e378f28fb7 Use a single scrollbar for all filters in the sidepanel. 2015-05-09 20:39:20 +03:00
Chocobo1
010bf80b90 Increase resource files compression level, the result is 1.9% smaller binary size 2015-05-08 15:33:40 +08:00
DoumanAsh
62776df9e1 Aborting search engine process during closure. Close #2671 2015-05-05 19:29:13 +03:00
Chocobo1
72c5bce6a4 Add "Add link to torrent" menu in TrayIconMenu. Closes #2918. 2015-05-04 00:59:00 +08:00
sledgehammer999
6e4fbcf017 Fix linux build. 2015-05-03 01:21:06 +03:00
sledgehammer999
1a9b13b829 Sync translations from Transifex and run lupdate. 2015-05-03 00:08:02 +03:00
sledgehammer999
6644fe0714 Tell Windows to wait during shutdown by creating a ShutdownBlockReason.
Huge thanks to paolo-sz for bringing this to my attention, for the various patches he tried to submit and for testing.
See issue #1984 for complete history.
Closes #1535.
2015-05-02 23:55:58 +03:00
sledgehammer999
d14805d065 Merge pull request #2863 from racam/master
login.html escape quotes + add qbittorrent-nox to gitignore + bug with startup info with qbittorrent-nox
2015-05-02 23:09:10 +03:00
racam
d7ac142885 Enhancement of the webui preference and of the quote escape for javascript 2015-05-01 21:59:36 +02:00
sledgehammer999
452b643e0c Merge pull request #2898 from glassez/app_quit
Fix aboutToQuit signal is not emitted on Windows.
2015-04-30 14:28:54 +03:00
Vladimir Golovnev (Glassez)
0a3406ea80 Fix aboutToQuit signal is not emitted on Windows.
In some cases QApplication::aboutToQuit() and
QApplication::commitDataRequest() signals not emitted on
Windows. This happened when qBittorrent is started with both "Show
minimized" and "Minimize to system tray" enabled.
2015-04-30 13:15:06 +03:00
Gabriele
8017680055 WebUI: create a new session for each user
Closes #2919.
2015-04-29 16:13:43 +02:00
sledgehammer999
167d20083d Merge pull request #2875 from pmzqla/qvarianthash
WebUI: Convert torrent list from QVariantHash to QVariantMap
2015-04-28 22:10:19 +03:00
Gabriele
41fa59f164 Allow to Open files from the properties pane by pressing "Enter"
Allow to open only one file at a time and ignore keypresses when
multiple items are selected.
2015-04-16 18:50:11 +02:00
Gabriele
b5b40abb56 WebUI: Implement 'Force Start' feature. 2015-04-16 18:32:31 +02:00
sledgehammer999
2c5edf8652 Implement 'Force Start' feature. Closes #270. 2015-04-15 18:13:24 +03:00
Gabriele
1f77a03eb6 Don't reorder the torrents in the transfer list if not necessary
The current sorting algorithm is not stable and causes undesidered
rearrangements of the transfer list when different torrents have same
values in respect to the current sorting criterion. Fix this by using
the priority, the seed date and the hash of the torrents as fallback
values to determine the order.

Closes #2158.
Closes #2526.
2015-04-15 11:43:22 +02:00
Gabriele
fff1436e26 WebUI: Convert torrent list from QVariantHash to QVariantMap
Currently QJsonDocument::fromVariant() does not support QVariantHash,
so convert the torrent list to QVariantMap.

Closes #2849.
2015-04-14 20:36:25 +02:00
Gabriele
1b2e65011d Follow project coding style. Issue #2192. 2015-04-13 21:16:44 +02:00
ngosang
20d7f37fd0 Changes torrent name when metadata is retrieved 2015-04-13 10:49:29 +02:00
sledgehammer999
6aceac152d Adjust color scheme for dark themes. Closes #1359. 2015-04-12 16:25:06 +03:00
sledgehammer999
4493fd9c31 Allow to use system QJson. Closes #1744. 2015-04-12 14:01:32 +03:00
sledgehammer999
3047681951 Don't include the GeoIP database in the repo. Inadvertently added by commit ff9a281b72. Issue #2837. 2015-04-12 01:07:41 +03:00
sledgehammer999
3c58b0cc9a Revert "WebUI: Use QVariantMap instead of QVariantHash"
This reverts commit d49c79d032.
2015-04-11 12:43:22 +03:00
Gabriele
d49c79d032 WebUI: Use QVariantMap instead of QVariantHash
Currently QJsonDocument::fromVariant() does not support QVariantHash,
so use QVariantMap instead.

Closes #2849.
2015-04-10 13:17:23 +02:00
David Christenson
307ae459f2
Fix variable names
Change undeclared identifiers `running_` and `paramsQueue_` to their
proper names.
2015-04-07 20:49:45 -06:00
sledgehammer999
7af4928b18 Merge pull request #2826 from pmzqla/webui-queueing
WebUI: Check if torrent queueing is enabled before changing torrent priorities
2015-04-07 21:33:43 +03:00
Gabriele
52c8a570e1 Use out of range value when the number of files can't be determined
Trying to get the number of files of a torrent with no metadata causes
a crash. Prevent this by first checking if the metadata is available.
If the number of files can't be determined, -1 will be returned.

Closes #2522.
2015-04-06 23:48:49 +02:00
sledgehammer999
0cab34aa11 Merge pull request #2833 from pmzqla/osx-trayicon
Don't use HTML in tray icon pop-up on OSX
2015-04-06 02:06:23 +03:00
sledgehammer999
28eeef93f6 Merge pull request #2816 from pmzqla/sortdates
Put torrents with invalid "Last Activity" value or no "Ratio Limit" at the bottom of the list
2015-04-05 22:16:47 +03:00
Gabriele
f02db79c52 Put torrents with no ratio limit at the bottom 2015-04-05 20:44:09 +02:00
Gabriele
0a51b57a54 Put torrents with invalid "Last Activity" value at the bottom of the list
Closes #2809.
2015-04-05 20:44:07 +02:00
Gabriele
98350bae5d Follow project coding style. Issue #2192. 2015-04-05 20:44:03 +02:00
sledgehammer999
dcc73afd73 Save widget states under different paths when using Qt5. Closes #2340. 2015-04-05 20:49:26 +03:00
sledgehammer999
4627776165 Move appdata xml to dist. 2015-04-05 18:58:33 +03:00
sledgehammer999
39b59974ad Merge pull request #2147 from alxpl/patch-1
Create qBittorrent.appdata.xml
2015-04-05 18:53:10 +03:00
Gabriele
a582f2e5ed Don't use HTML in tray icon pop-up on OSX
Closes #2830.
2015-04-04 19:22:27 +02:00
Gabriele
027a08c92e Update matching RSS articles while editing rules
Save the rules as soon as they are edited so that the matching
articles tree is immediately updated.

Closes #2829.
2015-04-04 19:21:33 +02:00
Gabriele
6e91a108bd WebUI: Check if torrent queueing is enabled before changing torrent priorities 2015-04-03 18:02:39 +02:00
sledgehammer999
d2ffbc44f1 Merge pull request #2721 from Chocobo1/dev7
Initialize class members
2015-04-02 14:50:11 +03:00
sledgehammer999
3294d895a1 Merge pull request #2652 from pmzqla/content-table
WebUI: changes to torrent file list
2015-04-02 11:53:19 +03:00
Chocobo1
ab6ccd9f5b Initialize member m_apstate 2015-04-02 14:15:58 +08:00
sledgehammer999
954214c364 Merge pull request #2730 from LazyBui/master
Implementing support for session-based download and upload statistics
2015-04-01 20:25:23 +03:00
ngosang
e0b399e2a1 [search engine] Update Torrentz trackers list 2015-03-31 16:21:26 +02:00
sledgehammer999
2e9593b797 Merge pull request #2812 from schnurlos/patch-3
Update about_imp.h
2015-03-31 08:41:49 +03:00
sledgehammer999
4c2b072ae2 Fix 'Resumed' filter counter. 2015-03-31 01:59:49 +03:00
schnurlos
2c9667e144 Update about_imp.h
Added schnurlos as 2nd german translator
2015-03-30 22:03:15 +02:00
ngosang
7172b48d9b Update translators 2015-03-30 15:56:10 +02:00
Chocobo1
1037d7f335 Webui: add delay in shutdown command in order to send out response msg 2015-03-30 13:50:53 +08:00
sledgehammer999
25afb8a338 New translation: Hindi(India). 2015-03-29 21:09:18 +03:00
sledgehammer999
4929085a5d Sync translations from Transifex and run lupdate. 2015-03-29 21:07:28 +03:00
sledgehammer999
276ca0ab84 Change the color scheme used(mostly for light backgrounds). 2015-03-29 20:45:17 +03:00
sledgehammer999
74fc92137a Merge pull request #2800 from pmzqla/icons-leftpanel
Set icon size to 16x16 in the left panel
2015-03-29 20:35:36 +03:00
Gabriele
ad271bb549 Set icon size to 16x16 in the left panel 2015-03-29 18:41:23 +02:00
Gabriele
e3a5ba09c4 WebUI: Implement a 'Completed' status 2015-03-29 18:00:59 +02:00
sledgehammer999
f9e7345776 Implement a 'Completed' status. Closes #2326 #2483 #939. 2015-03-28 21:25:32 +02:00
sledgehammer999
8420559e05 Implement 'Error' and 'Warning' views in the tracker list. Closes #1077. Partially implements #33. 2015-03-28 16:54:09 +02:00
sledgehammer999
9b0ea3a055 Allow the user to disable filters from the side panel. 2015-03-28 16:54:01 +02:00
sledgehammer999
ff1aaa8733 Refactor side panel code. Encapsulate each widget's logic in their own subclass. 2015-03-28 16:53:53 +02:00
sledgehammer999
1bb968f9fd Remove unused code from the side panel filters. 2015-03-28 16:53:44 +02:00
sledgehammer999
96d7bfb4ad Update the UI when trackers or Url seeds are added either via the WebUI or via merging duplicate torrents. 2015-03-28 16:53:36 +02:00
sledgehammer999
a85b6df314 Fix side panel resizing of elements. 2015-03-28 16:53:27 +02:00
sledgehammer999
f0d5ce4b98 Implement tracker list in the side panel. Closes #170. 2015-03-28 16:53:19 +02:00
sledgehammer999
133d92dd2e Merge pull request #2677 from pmzqla/connection
Remove dead connection from MainWindow
2015-03-26 03:38:27 +02:00
sledgehammer999
2fa061a898 Don't break RTL locales. 2015-03-20 00:02:50 +02:00
sledgehammer999
a40f30dd5e Fix speed printing in the tray icon and in the title bar. Closes #2737. 2015-03-19 01:02:05 +02:00
sledgehammer999
5a20bdcef3 Fix the deletion of torrents when using the context menu of the label sidepanel.
It now uses the same logic as the code that deletes torrents when using the context menu of the transferlist.
Closes #2729.
2015-03-16 23:57:03 +02:00
LazyBui
4dadf96925 Implementing support for session-based download and upload statistics 2015-03-16 09:41:39 -05:00
Chocobo1
3e6706a371 Don't close downloadFromURL dialog when showing empty url warning 2015-03-09 15:34:53 +08:00
Gabriele
def4b92588 Remove dead connection from MainWindow
shutdownCleanUp() had been removed with 458b216b74 ("MainWindow cleanups.")
2015-03-08 16:58:09 +01:00
Gabriele
48c1bd58dd Allow to copy all the trackers with a keyboard shortcut
If multiple trackers are selected, Ctrl+C will copy only one of them
while the context menu will copy all of them. Fix this inconsistency.

Closes #2675.
2015-03-08 12:50:22 +01:00
Gabriele
1e4d11801e WebUI: Add title attribute to filename cells in content tab
This will show the entire file path in a tooltip. This is useful
especially since bb1649a797 ("WebUI: return full paths to files).
2015-03-04 22:25:43 +01:00
Gabriele
dd112c1e1b WebUI: Simplify the code for the update of the content table 2015-03-04 22:25:26 +01:00
Gabriele
4db757839c WebUI: Return full path to files
It's otherwise impossible to know the structure of a torrent.
2015-03-04 20:03:46 +01:00
Artem S. Tashkinov
4f8155e612 Let's check if the torrent file can actually be opened before passing it to libtorrent
If we don't have enough permissions, libtorrent will spew a pretty useless, irrelevant and almost wrong message: "Failed to load the torrent: torrent file is not a dictionary"
2015-03-03 00:22:45 +05:00
Mayank Asthana
cf89d892c6 Download-from-URL textbox changes focus on tab key 2015-03-03 00:27:16 +05:30
ADTC
1109464dad Optimize PNG - torrentz
Reduced PNG sizes using PNGGauntlet for Windows (3 passes)

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-27 05:52:46 +08:00
sledgehammer999
112d4b8c71 Merge pull request #2512 from ngosang/torrentz
New feature: Torrentz search engine
2015-02-26 18:46:35 +02:00
sledgehammer999
54975e1c41 Merge pull request #2563 from pmzqla/encoding-check
WebUI: Use regular expression to check if gzip is accepted
2015-02-26 18:45:09 +02:00
sledgehammer999
09d7c2777f Merge pull request #2613 from DoumanAsh/btdigg_fix
[search engine] Remove custom HTTPSConnection. Fix #2594
2015-02-26 18:22:27 +02:00
sledgehammer999
906ffdf4b6 Merge pull request #2598 from ADTC/optimize-png
Optimize PNG (lossless compression)
2015-02-26 18:21:25 +02:00
Chocobo1
45149f3277 Let the OS decide the default interface regardless of IPv4/IPv6. Closes #2156. 2015-02-25 22:52:12 +08:00
Vladimir Golovnev (Glassez)
0e4ef42ddf Fix indentation size in qtlibtorrent/* files. 2015-02-25 12:48:40 +03:00
ngosang
fa6f4c6948 New feature: Torrentz search engine 2015-02-24 19:56:34 +01:00
DoumanAsh
2d4f183771 [search engine] Remove custom HTTPSConnection in btdigg. Fix #2594 #2425 2015-02-24 19:02:22 +03:00
sledgehammer999
92757b9f22 Follow project coding style. Issue #2192. 2015-02-23 22:38:29 +02:00
sledgehammer999
89db090cb9 Hold the Preferences lock the absolute minimum time. 2015-02-23 20:01:03 +02:00
sledgehammer999
153f3328f3 Randomize the listening port only on startup. 2015-02-23 20:00:55 +02:00
sledgehammer999
2c90ded9aa Fix qmake files. 2015-02-23 20:00:48 +02:00
ADTC
51a9d6572e Optimize PNG - search engines
Reduced PNG sizes using PNGGauntlet for Windows (3 passes)

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-23 18:36:47 +08:00
ADTC
286b247bf7 Optimize PNG - other icons
Reduced PNG sizes using PNGGauntlet for Windows (3 passes)

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-23 18:36:22 +08:00
ADTC
21bcb838b9 Optimize PNG - skin icons
Reduced PNG sizes using PNGGauntlet for Windows (3 passes)

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-23 18:35:50 +08:00
ADTC
508d54ac81 Optimize PNG - oxygen icons
Reduced PNG sizes using PNGGauntlet for Windows (3 passes)

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-23 18:35:13 +08:00
ADTC
f3e015f20e Optimize PNG - flags
Reduced PNG sizes using PNGGauntlet for Windows (3 passes)

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-23 18:31:36 +08:00
ADTC
2d81ffb001 Optimize PNG - line edit images
Reduced PNG sizes using PNGGauntlet for Windows (3 passes)

For clear_left.png, Beyond Compare shows important difference when
compared with original. However, the optimized file itself works fine.

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-23 18:29:37 +08:00
sledgehammer999
1bf7e3cafa Move the searchengine code back into its original place. 2015-02-23 03:44:29 +02:00
sledgehammer999
b93d784571 Revert "Change Update URL for search engines"
This reverts commit 24a1c9b16e.
2015-02-23 03:41:57 +02:00
Gabriele
8b65db69c4 WebUI: Use regular expression to check if gzip is accepted
The previous code caused a crash in case "gzip" was at the end of the
string with no quality factor (;q=*) specified.
2015-02-17 20:19:56 +01:00
John Sebastian Peterson
92f490cde8 Fix filter icons. Issue #2553 2015-02-15 02:29:41 +01:00
ngosang
24a1c9b16e Change Update URL for search engines 2015-02-12 18:00:26 +01:00
sledgehammer999
d4eaaf81e4 Merge pull request #2535 from ngosang/rss_warnings
Removes several warnings related with RSS
2015-02-12 17:31:16 +02:00
sledgehammer999
f62197f868 Merge pull request #2537 from ngosang/kickass_searchengine
Updated URL in kickasstorrents search engine
2015-02-12 16:09:54 +02:00
sledgehammer999
ac1e66fc71 Merge pull request #2490 from pmzqla/webui-checkbox
WebUI: Fix checkboxes of the watched folder list in the preferences
2015-02-12 16:07:53 +02:00
sledgehammer999
3b677053c7 Merge pull request #2487 from pmzqla/webui-negativeoffset
WebUI: Fix negative offsets when requesting torrent list
2015-02-12 16:06:29 +02:00
sledgehammer999
58c9a094f4 Merge pull request #2486 from pmzqla/webui-title
WebUI: Update browser title even with no transfer going on
2015-02-12 16:06:08 +02:00
sledgehammer999
33c5eccf13 Merge pull request #2493 from ADTC/issue-2452
Add "Copy name" option in right-click menu of torrent list
2015-02-12 16:04:59 +02:00
ngosang
ba2bb9be5b Updated URL in kickasstorrents search engine 2015-02-11 17:56:05 +01:00
ngosang
90a18da499 Removes several warnings related with RSS 2015-02-11 01:39:27 +01:00
ngosang
d206b00a88 Disable Auto piece size when creating a new torrent 2015-02-11 00:53:42 +01:00
buinsky
902db2b938 Group setting torrents download limit 2015-02-10 14:25:08 +03:00
buinsky
cf55751fbe Group setting torrents upload limit 2015-02-10 14:25:06 +03:00
buinsky
facab1681a Add ability to set super seeding mode for torrents 2015-02-10 14:25:04 +03:00
buinsky
28f573e9a8 Fix processHash function
Fix processHash function to not use QVariantHash as result because of QJsonDocument doesn't support QVariantHash variables in Qt 5.
2015-02-10 14:25:01 +03:00
buinsky
8931eec5b0 Use server refresh interval
Use torrents table refresh interval from server in web-client.
2015-02-10 14:24:59 +03:00
buinsky
c4332fe9a9 Add processing double click on torrent
Starting/pausing torrent by double-clicking on it.
2015-02-10 14:24:57 +03:00
buinsky
0fee2216d0 Add shortcut key for deleting selected torrents
Added processing of pressing 'Delete' key on keyboard.
2015-02-10 14:24:54 +03:00
buinsky
28b976bdb8 Place 'Resumed' filter before 'Paused' 2015-02-10 14:24:52 +03:00
buinsky
623797a6c4 Follow project coding style. Issue #2192. 2015-02-10 14:24:50 +03:00
buinsky
f5f9e206fb Add 'Resumed' filter 2015-02-10 14:09:17 +03:00
buinsky
0f56440dec Fix alternative speed limits toggle behavior 2015-02-10 14:09:15 +03:00
buinsky
135599acc4 Center vertically text in progress bar 2015-02-10 14:09:12 +03:00
buinsky
18b036545c Fix 'Resume all' & 'Pause all' actions 2015-02-10 14:09:10 +03:00
buinsky
1d5e52fc55 Fix friendlyDuration function 2015-02-10 14:09:07 +03:00
buinsky
ba86d16e78 Use compact style of JSON data 2015-02-10 14:09:05 +03:00
buinsky
bed0784a2d Follow project coding style. Issue #2192. 2015-02-10 14:09:02 +03:00
buinsky
d17f21af45 Queueing flag relocation in sync/maindata response 2015-02-10 14:09:00 +03:00
sledgehammer999
7bea5abb8d Merge pull request #2525 from ngosang/remove_empty_labels
Change "remove empty labels" to "remove unused labels".
2015-02-10 08:56:40 +02:00
sledgehammer999
503cca5a7e Merge pull request #2501 from ngosang/sort_state
Changes sort order of the status column
2015-02-10 08:55:17 +02:00
ngosang
d046b7a532 Change "remove empty labels" to "remove unused labels". 2015-02-10 01:46:27 +01:00
sledgehammer999
99cc29c18e Merge pull request #2504 from ngosang/remove_empty_labels
New feature: Remove empty labels
2015-02-10 02:18:28 +02:00
ngosang
ea111c664f New feature: Remove empty labels 2015-02-10 01:12:16 +01:00
DoumanAsh
503626bde8 [searchengine] Fix piratebay. Closes #2270 2015-02-09 21:13:57 +03:00
ngosang
57ab7fcf64 Changes sort order of the status column 2015-02-09 18:13:51 +01:00
sledgehammer999
b7898cccd0 Merge pull request #2508 from ngosang/mininova_search
Fix: error in mininova search engine
2015-02-09 19:09:54 +02:00
sledgehammer999
f84a22f403 Merge pull request #2506 from ngosang/white_bar
Removes white bar in the labels list. Closes #1151.
2015-02-09 19:09:16 +02:00
sledgehammer999
8bd0470fbb Merge pull request #2523 from ngosang/percent
Small change in progress bar percentage
2015-02-09 19:02:58 +02:00
ngosang
2da3ad3234 Removes white bar in the labels list. Closes #1151. 2015-02-09 17:38:54 +01:00
ngosang
0e89ec3737 Small change in progress bar percentage 2015-02-09 17:32:00 +01:00
ADTC
d0c523ed00 Changed "caption" to "name" in code for consistency
To maintain consistency with the actual English menu item, the variable
names and method name have been changed to reflect the menu item text.

Per comments in PR qbittorrent#2493

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-09 11:19:33 +08:00
ngosang
5d3f68e422 Add icon to "Copy name" option and change item ordering
The Copy icon is added to the menu item. This is in tandem with other
uses of the same icon, such as "Copy" (in log), "Copy selected" (in peer
list), "Copy tracker url", etc.

Also changed the ordering to have the new option appear before the
existing "Copy magnet link" icon.

This is as per comments in PR qbittorrent#2493

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-09 11:19:31 +08:00
Chris Hirst
91aad83cad Add "Copy name" option in right-click menu of torrent list
Implementation of feature request #2452
https://github.com/qbittorrent/qBittorrent/issues/2452

Adds a new option in the right-click menu of the torrent list to copy
the name(s) of selected torrent(s) to the clipboard. This is similar to
the existing option to copy the magnet links to the clipboard.

This patch was originally authored by Chris Hirst (ciaobaby). I changed
the item name from "Copy caption" to "Copy name" (the torrent list
column header says "Name"), and I added the missing line in the header
file.

Note: Translations are not updated for the English menu item "Copy
name".

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-09 11:19:29 +08:00
ngosang
1bd9b6ae1a Fix: error in mininova search engine 2015-02-09 01:46:00 +01:00
Gabriele
8890d244e2 WebUI: Update browser title even with no transfer going on 2015-02-08 23:10:41 +01:00
Gabriele
09c8d17c94 WebUI: Fix negative offsets when requesting torrent list
If the offset is negative, it must be added to the current list size.
2015-02-08 23:09:45 +01:00
Gabriele
2a351ea9a4 WebUI: Fix checkboxes of the watched folder list in the preferences
The 'checked' attribute does not require any value, so for unckecked
checkboxes nothing should be added.

Fix f16b7614a1.
2015-02-08 23:07:07 +01:00
Gabriele
8fa3a714c2 Use system format to display dates in logs 2015-02-08 23:05:47 +01:00
ngosang
85610b3b7d Fix Create Torrent dialog 2015-02-08 22:45:27 +01:00
Vladimir Golovnev (Glassez)
898d454b78 Follow project coding style (Issue #2192). 2015-02-08 20:38:04 +03:00
Vladimir Golovnev (Glassez)
2707f5205f Fix prefjson::setPreferences() doesn't actually save. 2015-02-08 19:44:56 +03:00
Vladimir Golovnev (Glassez)
8e1698d563 Implement Preferences::changed() signal. 2015-02-08 19:37:04 +03:00
Vladimir Golovnev (Glassez)
458b216b74 MainWindow cleanups.
All MainWindow child widgets use constructors with 'parent' parameter
that allows parent widget to delete them at its destruction.
Some other MainWindow cleanup code replaced to destructor.
Application manages MainWindow instance and remove it when aboutToQuit()
signal emitted.
2015-02-08 19:36:52 +03:00
Vladimir Golovnev (Glassez)
0c50a8b98b Put all application logic into Application class.
Application process message and split it into params list itself (this
prevents code duplication).
Application store params unless other components ready to process them.
Application incapsulate all QMacApplication and SessionApplication logic
(this is too small to have separate classes).
2015-02-08 19:33:18 +03:00
Vladimir Golovnev (Glassez)
8b95bb233d Fix main(). 2015-02-08 19:28:03 +03:00
Vladimir Golovnev (Glassez)
2dd473eb28 Use unmodified QtSingleApplication on Windows.
Get running application instance PID without QtSingleApplication
modification.
2015-02-08 19:27:45 +03:00
Vladimir Golovnev (Glassez)
e52a8fb0b0 Fix misc::getUserIDString() on Windows.
Return current user name now (and not constant "0").
Also use Unicode version of GetUserName().
2015-02-05 19:10:46 +03:00
Vladimir Golovnev (Glassez)
ff9a281b72 Change project directory structure.
Change project directory structure according to application structure.
Change 'nox' configuration option to something more meaningful 'nogui'.
Rename 'Icons' folder to 'icons' (similar to other folders).
Partially add 'nowebui' option support.
Remove QConf project file.
2015-02-05 19:10:26 +03:00
sledgehammer999
e4c7f52bb3 Merge pull request #2463 from Noctem/QFont
Include QFont headers for OS X
2015-02-02 23:34:15 +02:00
David Christenson
2b480f60f9 Include QFont headers for OS X
Fix compilation on OS X >10.8 by including headers for QFont.
2015-02-01 17:06:59 -07:00
sledgehammer999
d0b476a4be Merge pull request #2464 from Noctem/stdlib-flags
Fix OS X compilation and packaging
2015-02-02 00:21:02 +02:00
David Christenson
bdb722893f Fix C++11 compliance
Fix compiler error when compiling with -std=c++11
 "invalid suffix on literal; C++11 requires a space between literal and
 identifier [-Wreserved-user-defined-literal]"
2015-02-01 13:32:00 -07:00
sledgehammer999
6209d8838a Show info hash in the torrent details in 'Add New Torrent' dialog.
Initial work by chrishirst.
Closes #2385.
2015-02-01 18:29:00 +02:00
sledgehammer999
cb9a5c5018 Merge pull request #2480 from ngosang/copy_peers
Copy selected peers (IP:Port)
2015-02-01 15:51:52 +02:00
ngosang
17eb2dd3cc Copy selected peers (IP:Port) 2015-02-01 12:04:24 +01:00
sledgehammer999
2b24fe09c5 Save the new save path first in the history. Closes #2382. 2015-02-01 01:38:24 +02:00
sledgehammer999
38455af791 Follow project coding style. Issue #2192. 2015-02-01 01:27:51 +02:00
sledgehammer999
b465b3c68a Improve usability of 'Add new torrent' dialog. Implements issue #225. 2015-02-01 01:18:49 +02:00
sledgehammer999
d66273b10a Show error status when a torrent is missing files. 2015-01-31 20:06:50 +02:00
sledgehammer999
45b2432513 Don't touch torrents whose files are missing (like when their drive isn't plugged in).
Closes #342 #2308 2469.
2015-01-31 20:06:49 +02:00
David Christenson
1506999968
Fix OS X packaging
Remove erroneous Prefix entry from the Mac qt.conf, change translation
install location.
2015-01-29 15:57:08 -07:00
sledgehammer999
95c75bb8c8 Merge pull request #2374 from pmzqla/slider-bandwidth
Allow bandwidth values up to 65535 KiB/s
2015-01-28 00:49:16 +02:00
sledgehammer999
eeee24a0b3 Make 'TorrentPersistentData' similar to 'Preferences' class. 2015-01-27 17:34:21 +02:00
sledgehammer999
70985480d6 Follow project coding style. Issue #2192. 2015-01-27 17:34:20 +02:00
sledgehammer999
dcf5d4d0ee Merge branch 'optimize-persistent-data' of git://github.com/sorokin/qBittorrent
Conflicts:
	src/qtlibtorrent/qbtsession.cpp
2015-01-27 15:21:26 +02:00
Ivan Sorokin
e3349092ad Refactor TorrentPersistentData
Conflicts:
	src/mainwindow.cpp
	src/mainwindow.h
	src/qtlibtorrent/qbtsession.cpp
	src/qtlibtorrent/qtorrenthandle.cpp
	src/transferlistwidget.cpp
	src/webui/btjson.cpp
2015-01-25 02:58:54 +03:00
Ivan Sorokin
70a114eb13 Speedup persistent data
Conflicts:
	src/mainwindow.cpp
	src/mainwindow.h
2015-01-25 02:58:54 +03:00
sledgehammer999
061e71337b Initialize logger at the beginning of program to avoid threading issues. 2015-01-23 19:05:19 +02:00
sledgehammer999
087417c8a6 Change the code to use the Logger class instead. 2015-01-23 19:05:18 +02:00
sledgehammer999
a7527aa9a7 Remove unused signal from LogListWidget. 2015-01-23 19:05:17 +02:00
sledgehammer999
8966bcacea Follow project coding style. Issue #2192. 2015-01-23 19:05:16 +02:00
sledgehammer999
91fc9e69ee Make the GUI log listen to the logger class. 2015-01-23 19:05:15 +02:00
sledgehammer999
1504bbfe43 Logger base class. 2015-01-23 19:05:14 +02:00
sledgehammer999
39c9bb0800 Merge pull request #2445 from buinsky/WebUI3
Web API: rename 'json' scope to 'query'
2015-01-23 16:41:42 +02:00
sledgehammer999
e67c4390ed Merge pull request #2429 from pmzqla/watched-folders
WebUI: Fix watched folders on Gecko
2015-01-23 01:28:35 +02:00
buinsky
b30ec46048 Web API: rename 'json' scope to 'query' 2015-01-23 01:37:12 +03:00
sledgehammer999
f2c6981711 Merge pull request #2389 from buinsky/WebUI3
Web API: Implement sync/maindata request
2015-01-23 00:36:12 +02:00
buinsky
574c57ee18 Use sync/maindata request in WebUI 2015-01-23 01:13:42 +03:00
buinsky
383c0e1418 Implement sync/maindata request 2015-01-23 01:13:38 +03:00
buinsky
0d43ee7076 Follow project coding style. Issue #2192. 2015-01-18 16:27:17 +03:00
buinsky
bf0f9dd275 Implement functions for generating partial responses of requests. 2015-01-18 16:27:05 +03:00
Gabriele
f16b7614a1 WebUI: Fix watched folders on Gecko
Passing objects to push() seems to be broken on Firefox, making the
preferences impossibile to use when there are watched folders.
Fix this by passing strings instead of elements.
2015-01-17 14:06:53 +01:00
Gabriele
c5db1157f1 Allow bandwidth values up to 65535 KiB/s
The slider has a max value, but it's changed whenever a value greater
than it is specified.

Note: 65535 is the maximum value allowed by libtorrent.

Closes #2373.
2015-01-17 14:00:29 +01:00
Gabriele
737f6c5b4e Split speedlimitdlg.h into speedlimitdlg.cpp and speedlimitdlg.h 2015-01-11 01:22:28 +01:00
sledgehammer999
74fcee2d7d Merge pull request #2332 from buinsky/WebUI2
WebUI: Change torrent model
2015-01-10 16:37:26 +02:00
sledgehammer999
aca42b8ccc Merge pull request #2378 from glassez/python_reg
Improve Windows Registry searching for Python.
2015-01-10 15:23:12 +02:00
Vladimir Golovnev (Glassez)
b45eb28099 Fix heap corruption. Closes #2342.
Fix heap corruption during Registry access.
2015-01-10 14:48:42 +03:00
Vladimir Golovnev (Glassez)
f851875ad1 Improve Windows Registry searching for Python.
Simplify logic of related functions.
Make sure that all open handles are closed.
Explicitly use Unicode versions of Windows API functions.
Prevent max subkey length overwrite.
Use Windows API style of variable names.
2015-01-10 13:17:21 +03:00
Gabriele
d7161dcab1 Fix few spelling mistakes
s/Pieces size/Piece size/
s/uknown/unknown/

Closes #2367.
2015-01-08 18:42:58 +01:00
buinsky
04f1c0c238 WebUI: Change torrent model
Improvements:
- added functions, which may be used to reorder and hiding columns in torrents table
- new columns can be easily added to torrents table
2015-01-06 22:49:02 +03:00
sledgehammer999
68c06c7485 Rename the 'Unpaused' filter to 'Resumed'. 2015-01-04 01:32:31 +02:00
sledgehammer999
93f557b747 Coalesce changes in the Preferences class in a much shorter timeframe. 2015-01-04 01:20:37 +02:00
sledgehammer999
ca2dc325f5 Detect uknown command line parameters. 2014-12-28 12:31:37 +02:00
sledgehammer999
8bfd333c60 Touch up previous commit. 2014-12-28 12:31:36 +02:00
Vladimir Golovnev (Glassez)
afdc1ee93e HOTFIX: Correct command line parameters defaults. 2014-12-28 12:31:35 +02:00
sledgehammer999
96585ca73e Merge pull request #2322 from john-peterson/save4
fixing save state on change
2014-12-26 20:32:29 +02:00
John Sebastian Peterson
6de317ee13 Fix Properties widget state saving
readSettings changed CurrentTab and Visible by calling saveSettings

some slot connections were wrong
2014-12-26 19:28:50 +01:00
sledgehammer999
f21b0b4f6d Merge pull request #2321 from john-peterson/filter
adding inverse for paused filter
2014-12-26 20:11:15 +02:00
John Sebastian Peterson
89f34b4ae7 Add 'unpaused' torrent filter
the inverse of paused because complete and active have an inverse
2014-12-26 19:04:36 +01:00
sledgehammer999
5f8a49313e Merge pull request #2320 from pmzqla/webui-pausederror
WebUI: Add torrents paused because of errors in Paused and Download list
2014-12-26 19:38:49 +02:00
sledgehammer999
e8cb840836 Fix sorting by port column in peers view. 2014-12-26 17:30:09 +02:00
Gabriele
71bef1852d WebUI: Add torrents paused because of errors in Paused and Download list
Torrents paused because of errors are considered as torrents paused and in
download in the regular UI. Do the same in the WebUI for consistency.

Closes #2319.
2014-12-21 20:44:35 +01:00
sledgehammer999
91ec84b317 Merge pull request #2301 from pmzqla/checkuri-fix
WebUI: Specify URI size
2014-12-21 16:05:07 +02:00
sledgehammer999
db45d81f4c Merge pull request #2313 from glassez/cmdline
Improve command line parsing.
2014-12-21 15:57:22 +02:00
Vladimir Golovnev (Glassez)
5200999007 Improve command line parsing. 2014-12-21 16:29:01 +03:00
sledgehammer999
d888d4e897 Merge pull request #2046 from pmzqla/toolbar-menu
Allow minor toolbar customizations
2014-12-21 14:37:29 +02:00
Gabriele
0ebfea6c68 Add a context menu to the toolbar to change the position of the text
Closes #1145.
2014-12-21 13:27:45 +01:00
Vladimir Golovnev (Glassez)
1f110e9fb1 Fix qbittorrent-nox daemon. 2014-12-21 14:26:12 +03:00
Gabriele
442f45d42a Add texts to the icons on the toolbar
The toolbar follows the system style to display texts associated to
icons. Since no specific text is provided, the text used for the action
associated to the button will be used. This could make some of the
buttons rather big.

Add short texts to the icons so that each button uses a reasonable
amount of space.
2014-12-21 11:47:25 +01:00
sledgehammer999
6d6e3042c2 Merge pull request #2302 from buinsky/WebUI2
Accept multiple files at once. Closes #2253
2014-12-21 01:09:07 +02:00
buinsky
cb5b0f891c Accept multiple files at once. Closes #2253 2014-12-21 01:39:53 +03:00
sledgehammer999
bbd0dfb298 Merge pull request #2098 from DoumanAsh/int_search_combo
Add combo box for fast search engine switch
2014-12-20 21:56:52 +02:00
sledgehammer999
bea3a175fd Merge pull request #1549 from Gelmir/add_paused_rss
Support overriding global "Add paused" option in RSS on per rule basis
2014-12-20 20:05:24 +02:00
sledgehammer999
7b24157ce3 Merge pull request #2303 from Gelmir/gattrs
Normalize line endings
2014-12-20 19:59:03 +02:00
sledgehammer999
b46a0ea9b2 Use the 'fastest_upload' setting as seed choking algorithm. 2014-12-20 19:55:25 +02:00
buinsky
2d0099238a Follow project coding style. Issue #2192. 2014-12-20 20:53:58 +03:00
sledgehammer999
1110617896 Don't block peers that use privileged ports. 2014-12-20 19:48:54 +02:00
sledgehammer999
17c62bdd08 Fix incomplete commit 94ae9544d. Thanks @pmzqla for noticing and helping. 2014-12-20 19:31:38 +02:00
Nick Tiskov
385bbe0df6 Normalize EOL 2014-12-20 20:29:17 +03:00
sledgehammer999
b5c00df107 Merge pull request #2309 from john-peterson/save3
saving properties window state when changed
2014-12-20 18:43:02 +02:00
John Sebastian Peterson
cbb8cbf052 saving properties window state when changed
to not lose it on an unclean exit
2014-12-20 17:09:35 +01:00
sledgehammer999
94ae9544d8 Fix 'Open Containing Folder' on unselected file. 2014-12-20 17:40:06 +02:00
sledgehammer999
7bc7b0e6b8 Merge pull request #2307 from pmzqla/webui-altspeed
WebUI: Alternative speed limits fixes
2014-12-20 16:56:53 +02:00
sledgehammer999
506d9caf09 Merge pull request #2296 from buinsky/master
WebUI: Set global upload max limit to 10000 KB/s
2014-12-20 16:52:58 +02:00
sledgehammer999
edba48a0b6 Merge pull request #2299 from glassez/webui_tr
WebUI: Improve translation macro.
2014-12-20 16:20:22 +02:00
sledgehammer999
6daaaa6b24 Merge pull request #2297 from pmzqla/filename-extension
Filename extension fixes
2014-12-20 15:47:42 +02:00
sledgehammer999
ea2b650e7f Merge pull request #2293 from john-peterson/save2
saving splitter state on change
2014-12-20 15:12:03 +02:00
sledgehammer999
6c7eeb5c5b Merge pull request #2289 from glassez/fix_main
Improve program startup code.
2014-12-20 15:06:56 +02:00
Gabriele
fd86bafb38 WebUI: Be consistent with variable names 2014-12-19 17:34:52 +01:00
Gabriele
280aa95ef6 WebUI: Fix initial state of the alternative speed limits icon 2014-12-19 17:34:20 +01:00
Gabriele
a69515850c WebUI: Specify URI size
In some cases, args_ can't be empty. Specify the number of expected args.

Fix 2023ec043c ("WebUI: Check URI of GET and POST requests")
2014-12-19 17:09:36 +01:00
Vladimir Golovnev (Glassez)
48d4cf4f36 WebUI: Drop old translation hack. 2014-12-18 21:51:33 +03:00
Vladimir Golovnev (Glassez)
d80a14a2e1 WebUI: Improve translation macro.
Now we use QBT_TR(translatable string)QBT_TR.
2014-12-18 21:51:19 +03:00
Nick Tiskov
ef14b83134 Support overriding global "Add paused" option in RSS on per rule basis 2014-12-18 17:02:22 +03:00
Gabriele
e41de25919 Open files with ".!qB" appended to the filename
Filenames do not include ".!qB" in the file list, so the generated
path could be wrong.
2014-12-16 11:10:42 +01:00
Gabriele
301294fbff Remove unneeded check on filenames
The same check is performed in fsutils::fileExtension()
2014-12-16 11:10:04 +01:00
buinsky
9d51dcb663 WebUI: Set global upload max limit to 10000 KB/s 2014-12-16 05:01:55 +03:00
John Sebastian Peterson
e76ccd5926 saving splitter state on change
to not lose it on unclean exit
2014-12-15 23:26:44 +01:00
DoumanAsh
e357cf6231 Add combo box for fast search engine switch 2014-12-16 01:19:31 +03:00
DoumanAsh
722f1aaee8 Small fix of import in legittorrents engine 2014-12-16 01:19:19 +03:00
Vladimir Golovnev (Glassez)
96727f3206 Use forward declarations in main.cpp. 2014-12-15 21:43:01 +03:00
DoumanAsh
3b4548fe73 Remove vertor engine. Closes #2260.
Reason: tracker is closed and redirect to TorrentReactor
2014-12-15 21:01:41 +03:00
sledgehammer999
cac63e85e9 Merge pull request #2290 from john-peterson/save
saving torrent list view when changed
2014-12-15 17:25:49 +02:00
John Sebastian Peterson
5cab5bd129 saving torrent list view when changed
bc its otherwise forgotten by an unclean exit
2014-12-15 16:12:13 +01:00
sledgehammer999
ba054f34c8 Merge pull request #2172 from sorokin/fix-space-key
Implement sane behavior of space key in torrent content list. Closes #140.
2014-12-15 17:09:56 +02:00
Vladimir Golovnev (Glassez)
ede6715e72 Simplify main() logic.
Add Application class.
Put application initialization code to Application class.
Place some code into separate functions.
2014-12-15 17:24:31 +03:00
sledgehammer999
3d7ca1da77 Merge pull request #2284 from pmzqla/webui-features
WebUI changes
2014-12-14 23:18:58 +02:00
Gabriele
3be4257ad9 WebUI: MochaUI: Use same cursors on Gecko and WebKit 2014-12-14 21:26:39 +01:00
Gabriele
76999b598c WebUI: Prevent default action of links
This prevents anchors from being added to the URL.
2014-12-14 21:26:39 +01:00
Gabriele
2023ec043c WebUI: Check URI of GET and POST requests 2014-12-14 21:26:39 +01:00
Gabriele
e4da128fbb WebUI: Check that all and only the needed parameters are provided
Issue #1560.
2014-12-14 21:24:37 +01:00
Gabriele
f89baa4cf5 WebUI: Use case insensitive parameters for POST requests 2014-12-14 21:24:37 +01:00
Gabriele
6211a9855a WebUI: Assign min width to speed limit labels
Try to prevent continuous changes in the width of the labels.
2014-12-14 21:24:37 +01:00
Gabriele
2c930862c5 WebUI: Align elements in footer 2014-12-14 21:24:37 +01:00
Gabriele
f45e48c32a WebUI: Show connection status in the statusbar 2014-12-14 21:24:32 +01:00
Gabriele
f1477319ef WebUI: Show DHT nodes in the statubar 2014-12-14 20:16:44 +01:00
Gabriele
2aa344bb0a WebUI: Add missing comments 2014-12-14 16:20:37 +01:00
Gabriele
accfbdd304 WebUI: Use translated strings for speed limits dialogue 2014-12-14 16:20:37 +01:00
Gabriele
c53b19d6c1 WebUI: Allow to control the alternative speed limits
setGlobalDownloadLimit and setGlobalUploadLimit will now modify the
alternative speed limits if they are currently enabled and the regular
speed limits otherwise.

Add also two new commands to toggle the state of the alternative speed
limits and get their current state.

Closes #2203.
2014-12-14 16:20:37 +01:00
Gabriele
25e8cad16c WebUI: Update transfer info when speed limits are changed 2014-12-14 16:20:37 +01:00
Gabriele
b3a537f575 WebUI: Don't cache transfer info values
In this way speed limits are instantly updated.
2014-12-14 16:20:37 +01:00
Gabriele
9bd24a1408 Follow project coding style. Issue #2192. 2014-12-14 16:20:37 +01:00
Gabriele
16dcf39823 WebUI: Use relative sizes when saving panel height
This should prevent situations in which the properties panel completely
covers the transferlist on page load.

Save also the height whenever the window is resized since that changes
the height of the panels without saving the height.
2014-12-14 16:20:37 +01:00
Gabriele
95bf2ffc51 WebUI: Define some functions on load
These function shouldn't be called when the page is not loaded yet,
so it makes sense to define them later.
2014-12-14 16:20:37 +01:00
Gabriele
f740a4f30b WebUI: Make transfer info look like in the regular UI
The string for the transfer info was not translated as it should have.
Drop it completely.
2014-12-14 16:20:37 +01:00
Gabriele
e9d5a76d9c WebUI: Never show scrollbars in rate limits dialogue
A different DPI setting might make the elements in the dialogue big
enough to make the scrollbars appear, but not big enough to make them
useful. So, never show them.
2014-12-14 16:20:36 +01:00
Gabriele
f775e68666 WebUI: Use correct max ratio value
Closes #183.
2014-12-14 16:20:22 +01:00
Gabriele
d202a59671 Don't forget alternative speed limits changes 2014-12-14 11:47:20 +01:00
Gabriele
9b5fea1987 Don't put limits to the alternative speed limits 2014-12-14 11:47:08 +01:00
sledgehammer999
47e7b3fac2 Merge pull request #2277 from buinsky/master
Some changes in WebUI
2014-12-14 02:11:46 +02:00
buinsky
98deac97a0 Precise setting of upload/download limits 2014-12-14 00:58:37 +03:00
buinsky
c95e181378 Disable flooding debug messages 2014-12-14 00:58:35 +03:00
buinsky
364e4277ec Show upload and download limits in status bar 2014-12-14 00:58:18 +03:00
Vladimir Golovnev (Glassez)
1fcca6f434 Fix main.cpp indentation. Issue #2192. 2014-12-13 20:22:35 +03:00
Vladimir Golovnev (Glassez)
ebd71bbe4c Avoid unnecessary classes creation. 2014-12-13 19:42:11 +03:00
sledgehammer999
4665dd6ea2 Run lupdate. 2014-12-13 16:17:16 +02:00
sledgehammer999
11ef0f8729 Correct RSS tooltip text from 18e0d122fb. 2014-12-13 16:14:13 +02:00
sledgehammer999
45313040d0 Run lupdate. 2014-12-13 15:50:54 +02:00
sledgehammer999
7f7aaabec1 Add better translation notes for some strings. 2014-12-13 15:49:50 +02:00
sledgehammer999
c0ecaa6f58 Merge pull request #2274 from pmzqla/headless-password
headless: Update default password hash
2014-12-13 13:05:45 +02:00
buinsky
1b4dad214a Fix setting session id 2014-12-13 01:29:59 +03:00
Gabriele
04d2deabb5 Vertical align right-aligned elements of the transfer list
Same as d19b7a777f ("Vertical align right-aligned header text")
2014-12-12 21:23:12 +01:00
Gabriele
9a534f62d5 headless: Update default password hash
Use the md5 of 'adminadmin'.
2014-12-12 15:26:40 +01:00
sledgehammer999
861c8e9ffa Merge pull request #2262 from pmzqla/webui-changes
WebUI: Misc changes
2014-12-12 00:55:05 +02:00
Gabriele
7a58a3fe43 WebUI: Ensure that no concurrent timers exist 2014-12-11 22:05:40 +01:00
Gabriele
fdc975d900 WebUI: Add readonly attribute to comment textarea
Torrent comments should not be editable.
2014-12-11 00:02:11 +01:00
Gabriele
005e378cbd WebUI: Don't change cursor style for the file list
Changing the cursor is misleading, no operation can be done.
2014-12-11 00:02:11 +01:00
Gabriele
1332ca318b WebUI: Adjust size of columns in property panels 2014-12-11 00:02:11 +01:00
Gabriele
b46ecb4351 WebUI: Decrease frequency of updates of property panel
Now that the properties are loaded immediately when the selected torrent
or the property tab is changed, the frequency of the updates can be
reduced without affecting the user experience.

New update intervals:
 * General: 5 seconds (10 if qBT is not reachable)
 * Tracker list: 10 seconds (20 if qBT is not reachable)
 * File list: 5 seconds (10 if qBT is not reachable)
2014-12-11 00:02:11 +01:00
Gabriele
ac507261f8 WebUI: Remove extra parethesis 2014-12-11 00:02:11 +01:00
Gabriele
408cc7101e WebUI: Update torrent properties immediately
Don't wait for new data to be fetched, request them as soon as
they are required, i.e. when a property tab is loaded or when a
different torrent is selected.
2014-12-11 00:02:09 +01:00
Gabriele
c54271638b WebUI: Load properties tabs once
Don't reload HTML on tab change. Load the entire structure once and
keep the unused bits hidden.

Keep also the JS code separately, one file per tab.

NOTE: tabs content is not loaded. This will be fixed in the next commit.
2014-12-11 00:00:35 +01:00
Gabriele
cb9ed13d69 WebUI: Fix minor error
No timer is set when the functions are directly called.
2014-12-11 00:00:35 +01:00
Gabriele
d06d7b1f6d WebUI: MochaUI: Show entire error message 2014-12-11 00:00:35 +01:00
Gabriele
aded5422d8 WebUI: MochaUI: Check for undefined functions 2014-12-11 00:00:35 +01:00
sledgehammer999
6884845446 Ensure that the priority column has enough width when queueing is enabled. Closes #2263. 2014-12-11 00:04:33 +02:00
Gabriele
d055613125 WebUI: Make column width less variable in transferlist
Each column has a fixed width that allows to read its content.
The column for the name of the torrents has a variable width with an
upper and a lower constraint.

If the width of the page is not sufficient to fit the table, a scrollbar
will appear.
2014-12-10 21:56:37 +01:00
Gabriele
5fb32da49f WebUI: Center progressbars in trasferlist 2014-12-10 21:56:33 +01:00
Gabriele
0a512e41c9 WebUI: Select username on login page load
On logout, the input field is not empty. Select its content.
2014-12-10 21:56:27 +01:00
Gabriele
57e9165bb4 WebUI: Translate page title everywhere 2014-12-10 21:56:06 +01:00
sledgehammer999
1820a03f1d Merge pull request #2254 from buinsky/master
WebUI: Some changes
2014-12-10 22:50:35 +02:00
buinsky
2c93330ce9 Add space before priority menu item 2014-12-10 06:45:24 +03:00
buinsky
76e30ecf78 Dynamically show 'Start' and 'Pause' menu items 2014-12-10 06:44:41 +03:00
buinsky
2a712a81ea Add sequential downloading menu items 2014-12-10 04:50:39 +03:00
buinsky
6644791458 Follow project coding style. Issue #2192. 2014-12-10 04:50:21 +03:00
buinsky
44992056cf Restore selected filter on page load 2014-12-09 23:49:11 +03:00
buinsky
5b604ac251 Save torrent list sort order in local storage 2014-12-09 23:49:09 +03:00
buinsky
b4f39add08 Update torrent list after operations with torrents.
Immediately update torrent list after some operations with torrents.
Such as changing priority, adding torrent, pause/resume, etc.
2014-12-09 23:49:07 +03:00
buinsky
e8ad465c5f Follow project coding style. Issue #2192. 2014-12-09 23:49:05 +03:00
buinsky
57a4f3ed19 Hide priority menu items when queueing is disabled 2014-12-09 23:48:45 +03:00
Gabriele
2389495d96 Ignore .!qB when extracting file extensions 2014-12-09 21:32:26 +01:00
alxpl
9e181e2e3d Create qBittorrent.appdata.xml
fixes #1701

An appdata file for inclusion in the upcoming software centers as per the new freedesktop.org specs.

It should be placed in /usr/share/appdata/ similar to the way .desktop files are placed in /usr/share/applications/, e.g. if you have a "$(datadir)/applications" definition in your makefiles, you need to add a "$(datadir)/appdata" as well.

Please, skim through the file in case I made a mistake and please, include it in the 3.1.x branch as well.
Of course you are free to modify it as you see fit, e.g. change the license, change copyright info, use your own screenshots, etc., just make sure it passes validation.

Thanks!

http://people.freedesktop.org/~hughsient/appdata/
http://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html
2014-12-08 00:01:40 +02:00
buinsky
28fad54cc4 Add higest and lowest priority icons into toolbar 2014-12-08 00:33:38 +03:00
buinsky
69506ec505 Follow project coding style. Issue #2192. 2014-12-08 00:14:55 +03:00
buinsky
ba40408c8d Images cache control code edit 2014-12-07 23:50:06 +03:00
buinsky
dbc5ffee75 Follow project coding style. Issue #2192. 2014-12-07 23:33:36 +03:00
sledgehammer999
513f71e000 Sync translations from Transifex and run lupdate. 2014-12-07 22:01:37 +02:00
Gabriele
0b6d5c662a WebUI: Use CSS to alternate row colors in transferlist
Keep the old code for IE < 9, the majority of the browsers
shouldn't need it.

Also, keep the CSS code in one place.
2014-12-07 15:53:33 +01:00
Gabriele
8a4028fc84 WebUI: Remove unused variable 2014-12-07 15:53:33 +01:00
Gabriele
d7071a81bd WebUI: Keep current preference for the title style in a variable
Read persistent value only when required.
2014-12-07 15:53:33 +01:00
Gabriele
6ee1c8851f WebUI: Update title immediately when showing/hiding rates 2014-12-07 15:53:33 +01:00
Gabriele
2226f166ac WebUI: Fix increasing frequency of XHR requests
ajaxfn() is called every time the torrent list is filtered. This function
calls itself after a predefined amount of time by setting a timer. If
the function is called manually without destroying the timer, the
frequency of the XHR requests will increase.

Fix this by saving a reference to each timer that is created so that
they can be later destroyed.

Add also two helper functions to request updated data safely.
2014-12-07 15:53:33 +01:00
Gabriele
aab2c34257 Follow project coding style. Issue #2192. 2014-12-07 15:53:28 +01:00
sledgehammer999
3672363207 Merge pull request #2191 from glassez/webui
WebUI: Implement server-side filtering, sorting and limit/offset.
2014-12-07 15:42:01 +02:00
sledgehammer999
14d27d982d Fix compilation with libtorrent 0.16.x. 2014-12-07 15:28:55 +02:00
Vladimir Golovnev (Glassez)
0e87b96beb WebUI: Drop client-side sorting. 2014-12-07 16:28:03 +03:00
Vladimir Golovnev (Glassez)
e279dcf904 WebUI: Implement limit/offset. 2014-12-07 16:28:01 +03:00
Vladimir Golovnev (Glassez)
59ff08c107 WebUI: Implement server-side sorting. 2014-12-07 16:27:59 +03:00
Vladimir Golovnev (Glassez)
8ff03d162d WebUI: Fix transferlist.html indentation. 2014-12-07 16:27:56 +03:00
Vladimir Golovnev (Glassez)
d938643c38 WebUI: Drop client-side filtering. 2014-12-07 16:27:54 +03:00
Vladimir Golovnev (Glassez)
0488ddafa5 WebUI: Fix indentation.
Fix indentation in client.js and dynamicTable.js.
2014-12-07 16:25:52 +03:00
Vladimir Golovnev (Glassez)
1a1db877bf Use QTorrentHandle::torrentState() in btjson. 2014-12-07 16:13:39 +03:00
Vladimir Golovnev (Glassez)
5edf0e251f WebUI: Implement server-side torrent filtering. 2014-12-07 16:13:37 +03:00
Vladimir Golovnev (Glassez)
e887f574d7 Implement QTorrentHandle torrentState() and eta(). 2014-12-07 16:13:33 +03:00
Vladimir Golovnev (Glassez)
c24610ec80 WebUI: Improve btjson.* indentation. 2014-12-07 16:13:32 +03:00
sledgehammer999
78d4258dac Remove unused variable. 2014-12-07 15:09:56 +02:00
sledgehammer999
cd52d1820d Show reason why a peer was blocked. Needs libtorrent 1.0.x. 2014-12-07 15:09:16 +02:00
sledgehammer999
96ec6777e6 Follow project coding style. Issue #2192. 2014-12-07 12:11:18 +02:00
sledgehammer999
08f96ae7d7 Save RSS cache in folder called rss. 2014-12-07 11:54:09 +02:00
sledgehammer999
e331850b70 Merge pull request #1147 from maxrd2/rss_text
RSS Feed plain text description is not formatted.
2014-12-07 11:47:26 +02:00
sledgehammer999
7736415945 Merge pull request #1122 from maxrd2/rss_html
RSS Feed was not displaying remote images in html description.
2014-12-07 11:46:41 +02:00
Mladen Milinkovic
2c6df559e8 RSS Feed was not displaying remote images in html description. Closes #1119 2014-12-07 01:36:44 +01:00
Mladen Milinkovic
195b46673a RSS Feed will format plain text descriptions 2014-12-07 01:31:18 +01:00
sledgehammer999
f8e25984ae Fix for commit 35e964f66. 2014-12-07 01:39:49 +02:00
sledgehammer999
8449203b27 Add info about the proxy password being saved unencrypted. Closes #1490. 2014-12-06 21:05:34 +02:00
sledgehammer999
734301326b Rearreange header includes in Peerlist widget. 2014-12-06 19:24:07 +02:00
sledgehammer999
35e964f66d Implement peer relevance column. Closes #1630. 2014-12-06 19:07:26 +02:00
sledgehammer999
dc04ff511f Merge pull request #1546 from Gelmir/add_paused
Partially revert 14310f9b05
2014-12-06 17:04:13 +02:00
Gabriele
ef0b4c6ee2 Don't overwrite WebUI password when changing preferences
The input field to change password does not contain the actual
password, but its hash. When the preferences are saved, the hashed
password is considered as a new password.
Prevent this by comparing the new password with the hash of the
previous password.

Closes #2241.
2014-12-04 19:09:28 +01:00
sledgehammer999
da9396ca94 Fix compilation on ARM. Closes #2204. 2014-12-02 14:32:47 +02:00
sledgehammer999
8882895f5e Merge pull request #2230 from pmzqla/searchengine-kat
searchengine: Update KickassTorrents url
2014-12-02 11:28:39 +02:00
Gabriele
ad949c69b5 searchengine: Update KickassTorrents url
Closes #2228.
2014-12-02 00:17:07 +01:00
Gabriele
d19b7a777f Vertical align right-aligned header text
Since e907306b41 ("Right align header text that also has right-aligned
row text"), right-aligned elements are no longer centered vertically.
This can be noticed with some Qt styles (e.g. Breeze).
2014-12-01 23:04:24 +01:00
Nick Tiskov
9a87afb562 Use TorrentTempData for overriding "add torrents paused" functionality 2014-11-30 20:20:38 +03:00
sledgehammer999
f5048a4586 Merge pull request #2201 from buinsky/master
WebUI: Some changes
2014-11-30 15:11:29 +02:00
sledgehammer999
e5e22eb925 Fix the language selection in the combobox when the system locale only has a lang equivalent and not a lang_COUNTRY one. Closes #1786. 2014-11-30 15:07:43 +02:00
buinsky
740617e5ce Use localStorage instead of cookies 2014-11-30 12:44:33 +03:00
buinsky
5e8c62e539 Add "Speed in title bar" item to menu
* file: src/Icons/oxygen/checked.png
  copyright: Victor Buinsky <allok.victor@gmail.com>
2014-11-30 10:39:27 +03:00
buinsky
b0e138d669 Set images cache expiry time to 300000 seconds 2014-11-30 10:30:20 +03:00
buinsky
632fd84e54 Fix context menu width 2014-11-30 10:30:02 +03:00
buinsky
39e135e40a Fix menu width 2014-11-30 10:27:33 +03:00
sledgehammer999
5d79fcdafd WINDOWS: Fix automatic python download. Commit 0799dc2 broke this. Closes #2076. 2014-11-30 00:34:25 +02:00
sledgehammer999
f88ceed2b6 Let Qt decide the size of the statusbar. 2014-11-29 23:13:33 +02:00
sledgehammer999
9d548814a3 Resize and crop the icons used in the status bar. 2014-11-29 23:13:21 +02:00
sledgehammer999
12cd143f75 Merge pull request #2061 from pmzqla/speed-indicators
Show current speed limits in the status bar
2014-11-29 23:11:49 +02:00
sledgehammer999
6c0b74b94b Merge pull request #2214 from Gelmir/trace
Fix backtrace functionality under MinGW
2014-11-29 16:50:06 +02:00
Nick Tiskov
6bab65e5b4 Produce demangled backtraces under MinGW 2014-11-29 16:40:18 +03:00
sledgehammer999
9e6a4da542 Merge pull request #2210 from alfrix/gui_fix
GUI: Streamline Properties Widget. Closes #2159
2014-11-29 15:35:21 +02:00
Nick Tiskov
2dd3d1fb22 Fix indentation for long addresses and filenames 2014-11-29 16:17:37 +03:00
Nick Tiskov
ba9f6a3531 Follow project coding style. Issue #2192. 2014-11-29 16:17:32 +03:00
sledgehammer999
0689a1735d Merge pull request #2206 from alfrix/prio_buttons
Add top and bottom priority hotkeys and buttons to menu and toolbar
2014-11-29 15:16:26 +02:00
sledgehammer999
b9ce4d48a0 Merge pull request #802 from Gelmir/rss_match_time_limit
Add setting to ignore RSS rule matches for X days
2014-11-29 12:56:25 +02:00
Alfredo Monclus
d28ca2eddc Add hotkeys and buttons for Top and Bottom priorities 2014-11-26 19:41:29 -03:00
Alfredo Monclus
7314c57852 GUI: Streamline Properties Widget. Closes #2159
Merge select buttons and filtering into one line
2014-11-26 18:48:12 -03:00
sledgehammer999
ecf3dd123e Don't display weird text in the 'Last Activity' column when the time is invalid. 2014-11-26 14:51:52 +02:00
sledgehammer999
e907306b41 Right align header text that also has right-aligned row text. Closes #2188. 2014-11-26 14:40:15 +02:00
sledgehammer999
f61675d98a Merge pull request #2207 from pmzqla/rss-rules
Fix RSS "OR" condition in "must not contain" rules.
2014-11-26 13:37:16 +02:00
sledgehammer999
89726d4566 Remove useless includes. 2014-11-26 02:19:48 +02:00
sledgehammer999
a8766058f3 Use parse_magnet_uri() where possible. 2014-11-26 02:19:47 +02:00
sledgehammer999
f413e8b121 Stop using internal libtorrent API. Closes #2202. 2014-11-26 02:19:46 +02:00
sledgehammer999
cbbf14b0f8 Follow project coding style. Issue #2192. 2014-11-26 02:19:44 +02:00
Nick Tiskov
806a4a2e6a Add setting to ignore RSS rule matches for X days 2014-11-26 01:55:25 +03:00
Gabriele
c6dbe8ea60 Don't use white spaces as separator in RSS "must not contain" rules
This RegExp uses both white spaces and | as separator.
Use only the latter and drop the RegExp as it is no longer required.
2014-11-25 19:38:18 +01:00
Gabriele
5dede9e433 Use correct separator for "OR" condition in RSS rules
Although RSS rules were correctly parsed, the wrong separator for the
"OR" condition was used to re-generate the string of the rule displayed
in the preferences.

Closes #2205.
2014-11-25 19:19:20 +01:00
sledgehammer999
060d3fc5b9 Merge pull request #2153 from pmzqla/webui-versioninfo
WebUI: Allow to retrieve web API version and qBT version
2014-11-23 22:07:59 +02:00
sledgehammer999
8ce91e153d Merge pull request #2125 from buinsky/master
WEBUI: Some fixes
2014-11-23 21:54:42 +02:00
sledgehammer999
202e816d08 Use VERSION_BUILD where possible. Revert a change from previous commit. 2014-11-23 20:59:30 +02:00
buinsky
2275735b81 Change of number of decimal places to 1
Change of number of decimal places to 1 in speed and size values.
2014-11-23 16:53:41 +03:00
buinsky
b2876b7f66 Show speed in title 2014-11-23 16:38:52 +03:00
Gabriele
d6169b14dd WebUI: Allow to retrieve qBittorrent version
New GET method:
 * version/qbittorrent: qBittorrent version

Closes #1872.
2014-11-22 20:47:32 +01:00
Gabriele
8b5512c244 WebUI: Assign a version to the Web API and allow to get it
New GET methods:
 * version/api: current API version
 * version/api_min: min API version supported

The API version is an integer and it's returned as plain text.

Whenever the API is changed, the api version is increased.

Whenever the API is changed in a way that is not backward compatible,
api_min is increased.
2014-11-22 20:47:32 +01:00
Gabriele
1154ea3873 Change indentation to 4 spaces. Issue #2192. 2014-11-22 20:47:32 +01:00
buinsky
f44f676729 Update priority icons
Update priority icons
2014-11-20 17:26:38 +03:00
buinsky
5cc90844a5 Fixing setting speed limit of torrent in WEBUI
Fixing setting speed limit of torrent in WEBUI when global speed limit
is not set.
2014-11-20 17:26:36 +03:00
sledgehammer999
d6f309b7a6 Merge pull request #2177 from pmzqla/open-select
Implement open and select file in file manager [Linux]
2014-11-16 23:19:12 +02:00
Gabriele
0b14860e40 Implement open and select file in file manager [Linux]
Only few file managers are able to select files when started from the
command line.

xdg-mime is required to retrieve the default file manager. If it's not
available or the file manager is not able to automatically select files,
the containing directory will be opened as usual.
2014-11-16 21:28:30 +01:00
sledgehammer999
8f9c7b79ed Fix nox compilation. 2014-11-16 22:28:28 +02:00
sledgehammer999
f35e06540e Load torrents that have big metadata file. Closes #1889. 2014-11-16 21:25:53 +02:00
sledgehammer999
0adb9fcbce Escape backslashes. Issue #800. 2014-11-16 20:58:43 +02:00
sledgehammer999
bba8e18812 Merge pull request #744 from Gelmir/open_select
[Windows] Implement open & select file in file manager
2014-11-16 20:44:22 +02:00
Nick Tiskov
be99c45944 Fix opening of samba shares 2014-11-16 21:03:56 +03:00
Nick Tiskov
997b16a24a Implement open & select file in file manager [Windows only] 2014-11-16 21:03:51 +03:00
sledgehammer999
7dd4e4aca8 Merge pull request #2174 from sorokin/fix-empty-combobox
Fix emptying of 'piece size' combobox when user enable 'auto' checkbox and no files are selected
2014-11-16 18:15:06 +02:00
sledgehammer999
f12dc7ca36 Merge pull request #2173 from sorokin/placeholder-text-torrent-list
Set placeholder text to torrent content filter.
2014-11-16 18:02:55 +02:00
Ivan Sorokin
98a900e67d Fix emptying of piece size combobox when user checks "auto" checkbox.
The function computePathSize returns -1 if file isn't found, not 0.
2014-11-16 18:33:31 +03:00
Ivan Sorokin
376df3218d Set piece size to (max) 4Mb instead of empty string when created torrent
is very large.
2014-11-16 18:33:31 +03:00
Ivan Sorokin
6780791d60 Set placeholder text to torrent content filter.
In commit afb03725ad it was implemented
for torrent list filter. Now it is here for files filter.
2014-11-16 18:09:38 +03:00
Ivan Sorokin
97d08a5b2f Implement sane behavior of space key in torrent content list. Closes #140.
Definitions:

Selection in QTreeView consist of two things:

   currentIndex -- is a (dotted) cell where user clicked last time. Note
                   that it is a cell
   selectedIndexes -- is a set of cells (blue) of current selection.

Checkboxes in torrent content lists are belong to COL_NAME column.

Problem:

The problem is that spacebar toggled checkbox only in currentIndex
index. This has two consequences:

  1. It is impossible to toggle checkboxes on multiple rows
     simultaneously.
  2. If currentIndex is not in COL_NAME column a space key doesn't work
     at all. This problem is amplifyed by the fact that SelectionBehavior
     is set to SelectRows. So visually it is impossible to tell which
     column does it belong to. For end user it looks like "space doesn't
     work sometimes".

This patch addresses the problem by implementing TorrentContentTreeView
derived from QTreeView and overridding keyPressEvent(QKeyEvent*).

The code of TorrentContentTreeView::keyPressEvent is written under
inspiration from QAbstractItemView::keyPressEvent and
QItemDelegate::editorEvent.
2014-11-16 17:19:04 +03:00
sledgehammer999
9088b1af84 Merge pull request #800 from Gelmir/smart_ep
Implement episode filter for rss downloader
2014-11-16 14:48:56 +02:00
sledgehammer999
ae1cecca2f Merge pull request #2163 from sorokin/optimize-prioritize-files
Reduce the number of torrent_handle::torrent_file() calls in QTorrentHandle::prioritize_files()
2014-11-16 13:39:36 +02:00
Ivan Sorokin
404c8972af Reduce the number of torrent_handle::torrent_file() calls in QTorrentHandle::prioritize_files(). Closes #2161.
It was reported (#2161) that enabling/disabling a downloading of a file
is considerably slow on libtorrent 1.0.3, but not on 0.16.x. The problem
is that a function torrent_file() in libttorrent 1.0.3 does a deep copy
of torrent_info, while get_torrent_info() in libtorrent 0.16.x only
returns a reference.
2014-11-16 03:37:51 +03:00
Nick Tiskov
60c4306502 Fix missing icon for open action in file list 2014-11-12 11:51:09 +03:00
Nick Tiskov
18e0d122fb Add tooltip to episode filter text edit 2014-11-12 11:50:43 +03:00
Nick Tiskov
0564ceea9f Implement episode filter for rss downloader 2014-11-12 11:50:42 +03:00
sledgehammer999
e8bec885cb Merge pull request #2145 from pmzqla/webui
Make Web API locale independent
2014-11-12 00:32:00 +02:00
Gabriele
b4acb2ef52 Use localeCompare to sort torrent list by name 2014-11-10 13:57:01 +01:00
Gabriele
ed83070517 Use raw data to sort columns
Store the raw data retrieved in a new data-raw attribute and use
these to sort the columns.

In addition, make the ETA column sortable.
2014-11-10 13:57:01 +01:00
Gabriele
ec592f8175 Remove unneeded parameters from helper functions for WebUI 2014-11-10 13:57:01 +01:00
Gabriele
aedf579d77 WebUI: make API locale independet
Sizes are now given in bytes.
Dates are Unix timestamps and converted to ISO 8601 in the web UI.
Numbers are not converted to strings.
-1 is returned for undefined values.

Some keys have been splitted:

Torrent list (json/torrents)
 * num_seeds: Torrent seeds connected to
 * num_complete: Torrent seeds in the swarm
 * num_leechs: Torrent leechers connected to
 * num_incomplete: Torrent leechers in the swarm

Torrent generic properties (propertiesGeneral/hash)
 * total_uploaded: Total data uploaded
 * total_uploaded_session: Total data uploaded this session
 * total_downloaded: Total data dowloaded
 * total_downloaded_session: Total data downloaded this session
 * time_elapsed: Torrent elapsed time
 * seeding_time: Torrent elapsed time while complete
 * nb_connections: Torrent connection count
 * nb_connections_limit: Torrent connection count limit

Global transfer info (json/transferInfo)
 * dl_info_speed: Global downalod rate
 * dl_info_data: Data downloaded this session
 * up_info_speed: Global upload rate
 * up_info_data: Data uploaded this session

Closes #1524.
2014-11-10 13:57:01 +01:00
Gabriele
8cc7a3573e Show current speed limits in the status bar
Closes #1316.
2014-11-09 23:00:45 +01:00
Gabriele
f46e660679 Adjust the size of the elements in the statusbar
Use the same height for all the elements and try to prevent
variations of the speed labels.
2014-11-09 23:00:45 +01:00
sledgehammer999
d642ddc795 Merge pull request #2150 from pmzqla/webui-fix
WebUI: Don't empty transfer list before updating it
2014-11-09 23:02:32 +02:00
Gabriele
09fde676ae WebUI: Don't empty transfer list before updating it
This causes the list from disappearing in IE 10.
No longer needed table rows are deleted anyway.
2014-11-09 21:19:38 +01:00
sledgehammer999
4dbc235c70 Use rgb values to match colors before commit ad116e. Taken from qcolor_p.cpp. 2014-11-09 13:59:36 +02:00
sledgehammer999
6d64f2430c Merge pull request #2140 from sorokin/fix-torrent-removal
Fix torrent removal. Closes #2132
2014-11-09 13:09:38 +02:00
sledgehammer999
9d770ea48b Merge pull request #2144 from sorokin/up-down-scrolling
Speed up scrolling with up/down keys
2014-11-09 13:07:00 +02:00
sledgehammer999
21139f9d29 Merge pull request #2142 from sorokin/repaint
Misc changes in TorrentModel and TransferListWidget
2014-11-09 13:06:39 +02:00
Ivan Sorokin
5986c1dbc9 Cache QRegExp in misc::parseHtmlLinks()
This commit should improve performance when user navigating through
torrent list using up/down keys. A scrolling through all the list
(276 torrents) took:

    Total wall time:                            18.813s
    Total CPU time:                              3.210s
    misc::parseHtmlLinks():                      0.096s

misc::parseHtmlLinks() is 8th most hottest function on
this use case.
2014-11-09 12:57:14 +03:00
Ivan Sorokin
9023232653 Cache icons in TorrentContentModel
This commit caches icons in TorrentContentModel in the same way they are
cached in TorrentModel.

This commit should improve performance when user navigating through
torrent list using up/down keys. A scrolling through all the list
(276 torrents) took:

    Total wall time:                            18.813s
    Total CPU time:                              3.210s
    IconProvider::generateDifferentSizes():      0.170s

IconProvider::generateDifferentSizes is 5th most hottest function on
this use case.
2014-11-09 12:57:14 +03:00
Ivan Sorokin
976982ba09 Now user-created labels "all" and "none" works as regular labels 2014-11-09 03:59:49 +03:00
Ivan Sorokin
f235c0ae6c Merge label filter into TransferListSortModel
This also fixes a bug that when label filter contains special symbols
from regex, the label filter may match torrents with multiple different
labels.
2014-11-09 03:58:50 +03:00
Ivan Sorokin
8bafc5e216 Merge StatusSortFilterProxyModel into TransferListSortModel
I thought merging all 3 sort-filter proxy models into one should
speedup dataChanged() signal. As turned out this is not the case. The
time difference is within inaccuracy range, so this doesn't affect
performance.

But I still think it is good to merge them into one proxy model as it
simplifies code.
2014-11-09 03:58:50 +03:00
Ivan Sorokin
cf2cb29826 Split transferlistsortmodel into .h and .cpp 2014-11-09 03:58:50 +03:00
Ivan Sorokin
0976918ca2 Call updateTorrentNumbers() once per every model refresh, not once for every row changed
Torrent numbers were recalculated on every dataChanged() signal. The previous commit
greatly increases the number of dataChanged() signals.

HEAD^^:
    Total wall clock:                 97.069s
    updateTorrentNumbers() time:       0.033s

HEAD^:
    Total wall clock:                 96.132s
    updateTorrentNumbers() time:       0.179s

HEAD:
    Total wall clock:                 95.535s
    updateTorrentNumbers() time:       0.047s

After this commit the time of updateTorrentNumbers() is (almost) back to
the level that it was in HEAD^^.
2014-11-09 03:58:50 +03:00
Ivan Sorokin
e5c024967d Emit TorrentModel::dataChanged() signal only for specific rows, not for the entire table
In commit b50d733 TorrentModel moved from a periodic refresh, to using
postStatusUpdate(). In this transition I forgot to remove emition of
dataChanged() signal for the entire table.

According to my measurements this commit reduce CPU usage of qbittorrent
by a factor of 3:

Before:
   Total wall clock:                                      97.07s
   CPU time:                                              21.77s
   - Time spent in TransferListDelegate::paint():         14.60s
   - Time spent in TorrentModel::forceModelRefresh():      1.44s
   - Time spent in TorrentModel::stateUpdated():           0.02s

After:
   Total wall clock:                                      96.13s
   CPU time:                                               6.68s
   - Time spent in TransferListDelegate::paint():          2.63s
   - Time spent in TorrentModel::forceModelRefresh():     <0.01s
   - Time spent in TorrentModel::stateUpdated():           1.73s

As it is seen the time spent in painting is reduced by a factor of 6 (14.60->2.63) at
the cost of slightly increased time of notifications that model is
changed (1.44->1.73). The next commits attempt to address this issue.
2014-11-09 03:58:50 +03:00
Ivan Sorokin
2e55c1f307 Optimize torrentRow a bit
The problem is that torrentRow() does linear search over the list of all
available torrents. So it doesn't scale well for large number of
torrents. Removing the copying of QString from linear search
inner loop, speed up it considerably.

The proper solution should be using hash table instead of linear search.
This require more radical changes in TorrentModel and may be done in a
separate commit.
2014-11-09 03:48:58 +03:00
Gabriele
97c1b17cf0 Show a spinner while torrents are being uploaded 2014-11-09 00:30:37 +01:00
Gabriele
3d1617b2de Upload torrents on user command
Don't upload the torrents as soon as they are selected.

Also, adjust the HTML code to better place the upload button.
2014-11-09 00:28:41 +01:00
Gabriele
ee3a736787 WebUI: Return error in case uploaded files are not torrents 2014-11-09 00:28:41 +01:00
Gabriele
8b8c9d3573 Rotate expand image to better suit its use in the UI 2014-11-09 00:28:36 +01:00
Gabriele
c255ba675a Center images in top menu 2014-11-09 00:28:18 +01:00
Gabriele
7b49ab2a48 Add missing images and fix few paths
These images are used in CSS rules, but are missing.

Images taken from MochaUI git repo.
2014-11-09 00:28:18 +01:00
Gabriele
465ff473f1 Drop Firefox specific code
This change improves the responsiveness while resizing panels.
The code was intended to fix bugs in really old versions of Firefox.
2014-11-09 00:28:18 +01:00
Gabriele
e83e46b08a Fix panel height calculation in Opera 2014-11-09 00:28:18 +01:00
Gabriele
7b73e96863 Fix errors in width and height calculations
border-left/right/top/bottom are not numbers.
2014-11-09 00:28:18 +01:00
Gabriele
dc0591997a Bump Internet Explorer compatibility 2014-11-09 00:28:18 +01:00
Gabriele
30a25e1de4 Workaround to make invisible buttons clickable on IE 2014-11-09 00:28:18 +01:00
Gabriele
d106c12aa2 Restricts hacks and workarounds to IE < 9 2014-11-09 00:28:18 +01:00
Gabriele
66a91a6e3a Remove XML encoding declaration from HTML files 2014-11-09 00:27:53 +01:00
Gabriele
0d2e9a9473 Reduce font size of priority combo boxes
They were too big in some cases (e.g. Firefox on Linux).
2014-11-09 00:25:40 +01:00
Gabriele
fa706b24be Use fake tristate checkbox on IE < 9 only 2014-11-09 00:25:40 +01:00
Gabriele
92cc8f7211 Fix disappearing transferlist list when zooming in the browser
When the page is zoomed in the browser, the transferlist doesn't fit
in the page and is moved below the left column, disappearing completely.

Allow elements to overlap the handle to prevent this from happening.

The error message is moved in the status bar since it's wrongly placed
because of the overlap.

Closes #603.
2014-11-09 00:25:40 +01:00
Gabriele
4f28fb5680 Minimize width of first column in transfer list 2014-11-09 00:25:40 +01:00
Gabriele
afde16c252 Change color of table header in bottom panel and add some padding 2014-11-09 00:25:40 +01:00
Gabriele
c516c0ac12 Center vertically "+" image in tracker list 2014-11-09 00:25:40 +01:00
Gabriele
af9e40d83d Alternate background color for torrent content
CSS3 support required.
2014-11-09 00:25:40 +01:00
Gabriele
b01c1f3b9a Don't show white parts when hovering over the elements of the menu 2014-11-09 00:25:40 +01:00
Gabriele
4ff999d1c5 Change background color of rows of torrent content 2014-11-09 00:25:40 +01:00
Gabriele
c9db08f0f4 Change background color of filterlist on hover 2014-11-09 00:25:40 +01:00
Gabriele
59abcc554d Remove "Downloaded" from transferlist header and reduce column width 2014-11-09 00:25:40 +01:00
Gabriele
863dc71100 Focus username input on load 2014-11-09 00:25:40 +01:00
Gabriele
0bfad7dce6 Add type attribute to style tag 2014-11-09 00:25:40 +01:00
Gabriele
5e77d99a5e Add alt attribute to images 2014-11-09 00:25:40 +01:00
Gabriele
b2e86bae7e Remove extra double quotes 2014-11-09 00:25:34 +01:00
sledgehammer999
f5c93e0b4d Merge pull request #2129 from glassez/webui
WebUI Fixes
2014-11-09 01:21:00 +02:00
Ivan Sorokin
c37e5abeff Fix torrent removal. Closes #2132
It was reported that qbittorrent crashes on Mac OS X when user deletes
torrents from label view when label filter is active.

The callstack of the crash is the following:

1   abort + 129
2   __assert_rtn + 321
3   QTorrentHandle::total_size() const + 124
4   TorrentModelItem::data(int, int) const + 307
5   TorrentModel::data(QModelIndex const&, int) const + 255
6   QSortFilterProxyModel::data(QModelIndex const&, int) const + 109
7   QSortFilterProxyModel::data(QModelIndex const&, int) const + 109
8   QSortFilterProxyModel::data(QModelIndex const&, int) const + 109
9   QItemDelegate::rect(QStyleOptionViewItem const&, QModelIndex const&, int) const + 75
10  QItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const + 172
11  TransferListDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const + 14
12  QTreeView::indexRowSizeHint(QModelIndex const&) const + 887
13  QTreeViewPrivate::layout(int, bool, bool) + 462
14  QTreeView::doItemsLayout() + 356
15  QTreeViewPrivate::updateScrollBars() + 109
16  QTreeView::scrollTo(QModelIndex const&, QAbstractItemView::ScrollHint) + 124
17  TransferListWidget::currentChanged(QModelIndex const&, QModelIndex const&) + 548
18  TransferListWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 641
19  QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2196
20  QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved(QModelIndex const&, int, int) + 3729
21  QItemSelectionModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 398
22  QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2196
23  QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int) + 78
24  QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) + 106
25  QSortFilterProxyModelPrivate::remove_proxy_interval(QVector<int>&, QVector<int>&, int, int, QModelIndex const&, Qt::Orientation, bool) + 58
26  QSortFilterProxyModelPrivate::remove_source_items(QVector<int>&, QVector<int>&, QVector<int> const&, QModelIndex const&, Qt::Orientation, bool) + 265
27  QSortFilterProxyModelPrivate::source_items_about_to_be_removed(QModelIndex const&, int, int, Qt::Orientation) + 232
28  QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2196
29  QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int) + 78
30  QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) + 106
31  QSortFilterProxyModelPrivate::remove_proxy_interval(QVector<int>&, QVector<int>&, int, int, QModelIndex const&, Qt::Orientation, bool) + 58
32  QSortFilterProxyModelPrivate::remove_source_items(QVector<int>&, QVector<int>&, QVector<int> const&, QModelIndex const&, Qt::Orientation, bool) + 265
33  QSortFilterProxyModelPrivate::source_items_about_to_be_removed(QModelIndex const&, int, int, Qt::Orientation) + 232
34  QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2196
35  QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int) + 78
36  QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) + 106
37  QSortFilterProxyModelPrivate::remove_proxy_interval(QVector<int>&, QVector<int>&, int, int, QModelIndex const&, Qt::Orientation, bool) + 58
38  QSortFilterProxyModelPrivate::remove_source_items(QVector<int>&, QVector<int>&, QVector<int> const&, QModelIndex const&, Qt::Orientation, bool) + 265
39  QSortFilterProxyModelPrivate::source_items_about_to_be_removed(QModelIndex const&, int, int, Qt::Orientation) + 232
40  QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2196
41  QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int) + 78
42  QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) + 106
43  TorrentModel::removeTorrent(QString const&) + 81
44  TorrentModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 345
45  QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2196
46  QBtSession::deletedTorrent(QString const&) + 56
47  QBtSession::deleteTorrent(QString const&, bool) + 2855
48  TransferListWidget::deleteSelectedTorrents() + 292
49  TransferListWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 230
50  QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2196
51  QAction::activate(QAction::ActionEvent) + 227
52  QMenuPrivate::activateCausedStack(QList<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) + 77
53  QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) + 470
54  QWidget::event(QEvent*) + 687
55  QMenu::event(QEvent*) + 617
56  QApplicationPrivate::notify_helper(QObject*, QEvent*) + 194
57  QApplication::notify(QObject*, QEvent*) + 2716
58  SessionApplication::notify(QObject*, QEvent*) + 21
59  QCoreApplication::notifyInternal(QObject*, QEvent*) + 118
60  QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 448
61  qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) + 1300
62  -[NSWindow _reallySendEvent:] + 759
63  -[NSWindow sendEvent:] + 368
64  -[QCocoaPanel sendEvent:] + 113
65  -[NSApplication sendEvent:] + 2238
66  -[QNSApplication sendEvent:] + 97
67  -[NSApplication run] + 711
68  QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1522
69  QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 77
70  QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 370
71  QMenu::exec(QPoint const&, QAction*) + 103
72  TransferListWidget::displayListMenu(QPoint const&) + 8741
73  TransferListWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 622
74  QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2196
75  QWidget::event(QEvent*) + 3082
76  QFrame::event(QEvent*) + 45
77  QAbstractScrollArea::viewportEvent(QEvent*) + 108
78  QAbstractItemView::viewportEvent(QEvent*) + 1390
79  QTreeView::viewportEvent(QEvent*) + 218
80  QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) + 37
81  QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 115
82  QApplicationPrivate::notify_helper(QObject*, QEvent*) + 178
83  QApplication::notify(QObject*, QEvent*) + 5742
84  SessionApplication::notify(QObject*, QEvent*) + 21
85  QCoreApplication::notifyInternal(QObject*, QEvent*) + 118
86  qt_sendSpontaneousEvent(QObject*, QEvent*) + 45
87  qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) + 1378
88  -[NSWindow _reallySendEvent:] + 5682
89  -[NSWindow sendEvent:] + 368
90  -[QCocoaWindow sendEvent:] + 113
91  -[NSApplication sendEvent:] + 2238
92  -[QNSApplication sendEvent:] + 97
93  -[NSApplication run] + 711
94  QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1522
95  QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 77
96  QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 370
97  QCoreApplication::exec() + 199
98  main + 3415
99  start + 52

As we can see the user deleted some torrent (48). QBtSession deleted the torrent
from libtorrent::session (47) and emitted a signal (46), about torrent deletion.
In responce to the signal (43) the TorrentModel notifies (42) its views about a change.
After a long chain of notifications (42-6) the view requested (5) a value of
total_size from TorrentModel. QTorrentHandle is already invalid as the torrent
was removed in (47). So we've got a crash in (3).

The fix is relatively straightforward: do notify TorrentModel about removal not after,
but before torrent is removed from libtorrent::session. This commit does the same
thing to TorrentSpeedMonitor.

This bug reveals a major flaw in a design: currently we have a several components all
subscribed to the torrent removal signal. Signal is delivered to them in arbitrary
order, but they access each other in the handlers of this signal. E.g. TorrentModel
can access TorrentSpeedMonitor. This doesn't lead to a crash because
TorrentSpeedMonitor returns MAX_ETA when ETA is queried for unknown torrent.
2014-11-09 00:25:59 +03:00
Ivan Sorokin
6bbfd0aeb7 Fix a warning 2014-11-08 19:00:04 +03:00
sledgehammer999
c9e13dfe8b Merge pull request #2120 from sorokin/ip-filter-moc
split filterparserthread into .h and .cpp and (probably) fixes #2119
2014-11-08 14:35:23 +02:00
Vladimir Golovnev (Glassez)
cd0bcacd9f WebUI: Fix upload window closing on old browsers. 2014-11-07 15:53:11 +03:00
Vladimir Golovnev (Glassez)
d85c3170b2 WebUI: Add charset attribute to text content types. 2014-11-05 20:24:17 +03:00
Vladimir Golovnev (Glassez)
7b7f88ae4f WebUI: Fix WebAPI returned data. 2014-11-05 20:24:02 +03:00
Ivan Sorokin
da867fd022 Split trackerlogin into .h and .cpp 2014-11-05 03:10:39 +03:00
Ivan Sorokin
ed197a193d Split statusbar into .h and .cpp 2014-11-05 03:10:39 +03:00
Ivan Sorokin
6347700ee3 Move libtorrent includes to .cpp
This commit probably fixes #2119.

The only important change in this commit is moving
session::get_ip_filter() from FilterParserThread::processFilterFile() to
FilterParserThread::run(). Previously we called it in main thread, but
now we calls it in worker thread. I don't now what libtorrent contract
about threads, but I assume that if it is ok to set_ip_filter from
other thread, it is ok to get it.
2014-11-05 03:10:39 +03:00
Ivan Sorokin
17f5ffcaec Split filterparserthread into .h and .cpp 2014-11-05 03:10:39 +03:00
Vladimir Golovnev (Glassez)
0660398c28 Replace Mascot with qBittorrent logo on WebUI login page. 2014-11-03 16:31:41 +03:00
Vladimir Golovnev (Glassez)
651bf4f9aa Fix status returned to banned user. 2014-11-03 16:31:40 +03:00
sledgehammer999
6f14b34470 WEBUI: Protect against timing attacks. Closes #2108. 2014-11-02 21:41:29 +02:00
Gabriele
b63f647c2c Add "Total Size" column to transfer list
This column shows the total size of the related torrent taking into
account also the unwanted data.

Closes #1233.
2014-11-02 19:56:03 +01:00
Gabriele
b1af99ffba Add "Last Activity" column to transfer list
This column shows the time elapsed since the related torrent has
received or sent a chunk.

Closes #517.
2014-11-02 19:56:03 +01:00
Gabriele
a501f9d223 Add "Last Seen Complete" column to transfer list
This column shows when we or one of our peers last saw a complete
copy of the related torrent.

Closes #483.
2014-11-02 19:15:10 +01:00
Ivan Sorokin
51c9d358b4 Implement O(1) SpeedSample::average() instead of O(N) 2014-11-02 20:03:49 +03:00
Ivan Sorokin
4ff08ff691 New improved Sample in TorrentSpeedMonitor 2014-11-02 20:03:49 +03:00
Ivan Sorokin
0d311062f3 Unused function 2014-11-02 20:03:49 +03:00
sledgehammer999
d62498b48c Merge pull request #2106 from sorokin/fix-memleak-in-torrentmodel
Fix a memleak in torrentmodel.
2014-11-02 16:43:04 +02:00
sledgehammer999
37d83cf6a8 Merge pull request #2092 from pmzqla/cleanup
Remove unused code
2014-11-02 16:41:40 +02:00
sledgehammer999
4f2b7c2e10 Merge pull request #2081 from sorokin/split
Split a few files into .h and .cpp
2014-11-02 16:40:41 +02:00
sledgehammer999
cfa28ec68c Merge pull request #2080 from sorokin/cleanup-torrent-model
Cleanup torrent model item
2014-11-02 16:36:52 +02:00
sledgehammer999
73a05a67a4 Merge pull request #2057 from pmzqla/sort-content
Put directories first when sorting torrent content by name
2014-11-02 16:28:25 +02:00
sledgehammer999
6d5c9ff7d4 Merge pull request #2095 from DoumanAsh/piratebay_https
Return https connection for piratebay
2014-11-02 15:48:40 +02:00
sledgehammer999
08de7f7439 Merge pull request #2059 from sorokin/fix-eta
Fix ETA calculation
2014-11-02 15:41:40 +02:00
sledgehammer999
46f3009e4b Merge pull request #2051 from pmzqla/filter-input
Improve input box to filter torrent list
2014-11-02 15:25:49 +02:00
sledgehammer999
238703cb0e Remove unused variables. 2014-11-02 15:03:53 +02:00
sledgehammer999
9e6d57057f Add back contact info in the copyright notices. 2014-11-02 15:03:40 +02:00