1
mirror of https://github.com/qbittorrent/qBittorrent synced 2025-10-12 03:12:18 +02:00

Compare commits

..

76 Commits

Author SHA1 Message Date
sledgehammer999
3947f9c8ae Bump to 3.1.5 2014-01-16 23:41:22 +02:00
sledgehammer999
6c6ebaf485 Update Changelog. 2014-01-16 23:36:58 +02:00
sledgehammer999
57915462b0 Sync translations from Transifex. 2014-01-16 23:35:28 +02:00
sledgehammer999
8b94da20d3 Don't count paused torrents for the autoshutdown. Closes #1280. 2014-01-16 16:17:50 +02:00
Sébastien Lavoie
84c65c2b50 Issue #1251 - Added basic retina support 2014-01-12 15:16:40 +02:00
Nick Tiskov
e8c9db0084 Fix rss settings corruption when checking regexp and going to other rule. 2014-01-12 15:16:30 +02:00
sledgehammer999
19419b85ff Correctly remove isohunt engine. 2014-01-11 18:31:22 +02:00
sledgehammer999
5eb8a2a9f0 Remove isohunt search engine. 2014-01-11 18:14:47 +02:00
sledgehammer999
95bdb61ad2 Fix piratebay search engine. 2014-01-11 18:14:35 +02:00
Konstantin Goncharik
d79c79b4ae In preferences.h now argument is const references 2014-01-06 02:35:47 +02:00
Konstantin Goncharik
9b77d1f9f3 In statsdialog.cpp fix initialization iEnd 2014-01-06 02:35:34 +02:00
Konstantin Goncharik
659fa242e2 In smtp.cpp fix 'ct' reassign. 2014-01-06 02:35:22 +02:00
Konstantin Goncharik
1ba13b32a8 In rssdownloadrule.{cpp,h} 'RssDownloadRule::operator==' made const. 2014-01-06 02:35:09 +02:00
Konstantin Goncharik
1c38568f42 In qbtsession.cpp exception made caught by reference
Conflicts:
	src/qtlibtorrent/qbtsession.cpp
2014-01-06 02:34:52 +02:00
Konstantin Goncharik
7c1f712181 In qtorrenthandle.cpp exception made caught by reference 2014-01-06 02:34:11 +02:00
sledgehammer999
81d813c4c5 Fix notifications with xfce4-notifyd. 2014-01-04 19:41:59 +02:00
sledgehammer999
2cf7e94767 Force write settings to disk before exiting. 2014-01-04 19:41:47 +02:00
sledgehammer999
9f71dd2c61 Correctly detect libtorrent version. 2014-01-03 02:37:14 +02:00
sledgehammer999
f93374a946 Delete temporary after they aren't needed. Closes #1188. 2014-01-03 02:37:13 +02:00
sledgehammer999
4158465109 Ensure that the options window will always be placed onscreen. Closes #1226. 2014-01-03 02:37:12 +02:00
sledgehammer999
125d130984 Ensure that at least one column in the tranferlist is always visible. Closes #1165. 2014-01-03 02:37:11 +02:00
sledgehammer999
f66ef95918 Allow to resize the columns in Add New Torrent dialog. Closes #1207 #676 2014-01-03 02:37:11 +02:00
sledgehammer999
634b4d4f4d Preview now correctly uses the selected file. Closes #1222 #1182. 2014-01-03 02:37:10 +02:00
sledgehammer999
ced950a764 Do cleanup work in an earlier stage to ensure correct conf saving. 2014-01-03 02:37:09 +02:00
sledgehammer999
d84c367db5 Fix compilation with Qt 4.7. Closes #1215. 2013-12-31 19:58:21 +02:00
sledgehammer999
79aa3dfbcf Bump to 3.1.4 2013-12-29 19:06:39 +02:00
sledgehammer999
a308c6b9d0 Update Changelog. 2013-12-29 19:04:27 +02:00
sledgehammer999
614c1f5d6e Sync translations from Transifex. 2013-12-29 18:57:51 +02:00
sledgehammer999
fde9c2b9e9 Sort labels in 'Add new torrent' dialog. Closes #1150 #411. 2013-12-29 18:52:06 +02:00
Faheem Pervez
84a39671de Make sleep and shutdown functions work on systemd's logind 2013-12-29 18:51:54 +02:00
Nick Tiskov
20086543de 1. Use a better icon for stats dialog.
2. Use more reliable session_status.total_download/upload for statistics
2013-12-29 18:51:41 +02:00
sledgehammer999
1002e69e44 Fix previous commit. 2013-12-26 01:32:41 +02:00
sledgehammer999
09aa930142 Second attempt at fixing saving settings on shutdown. 2013-12-26 01:32:31 +02:00
sledgehammer999
ada76381a1 Lock toolbar in place. Closes #1144. 2013-11-30 14:17:14 +02:00
sledgehammer999
e4d5e38727 Fix resizing grip location. Closes #1146. 2013-11-30 14:17:02 +02:00
sledgehammer999
99349193b4 Run lupdate. 2013-11-30 13:21:11 +02:00
sledgehammer999
d69047df2e Update Changelog. 2013-11-30 13:16:46 +02:00
Nick Tiskov
8318fc2b61 Fix 'peer from PEX' message 2013-11-30 13:07:39 +02:00
sledgehammer999
ff5a633a8e Fix build system under Ubuntu 13.10 2013-11-26 23:56:48 +02:00
sledgehammer999
28fcadc9ee Fix linux compilation. 2013-11-23 15:24:27 +02:00
doadin
8a98cd5e20 Fix Typo 2013-11-23 15:08:46 +02:00
sledgehammer999
0706c3b3c8 Run lupdate. 2013-11-23 15:03:42 +02:00
sledgehammer999
17188e31c5 Check for program updates every 15min and allow the user to manually check for updates through the help menu. 2013-11-23 15:00:54 +02:00
sledgehammer999
45d1e93ad2 Fix compilation with libtorrent 0.15.x. 2013-11-23 13:23:22 +02:00
sledgehammer999
4c6f8413cb Run lupdate. 2013-11-21 18:33:56 +02:00
sledgehammer999
db5e06a48f Add tooltip for the peers' flags. Closes #1068.
Conflicts:
	src/properties/peerlistwidget.cpp
2013-11-21 18:23:12 +02:00
sledgehammer999
e51013117c Improve the message of the deletion dialog. Closes #1073. 2013-11-21 18:21:42 +02:00
Nick Tiskov
11148fcda6 Add dialog to show statistics 2013-11-21 18:21:31 +02:00
Nick Tiskov
d74e96f65f Collect and save alltime UL/DL samples
Conflicts:
	src/qtlibtorrent/torrentspeedmonitor.cpp
2013-11-21 18:21:15 +02:00
sledgehammer999
454cd4c120 Bumpt to 3.1.3 2013-11-20 00:52:37 +02:00
sledgehammer999
8d5992d7cf Update Changelog. 2013-11-20 00:52:37 +02:00
sledgehammer999
c37ad843b4 Sync translations from Transifex. 2013-11-20 00:52:36 +02:00
sledgehammer999
2d130bfa85 Improve detection of conf.pri. 2013-11-20 00:33:38 +02:00
sledgehammer999
4ac1f7b09e Revert "Don't prefer TCP connections over uTP."
This reverts commit a052963775.
2013-11-20 00:33:37 +02:00
sledgehammer999
db8d8b73a1 Update Changelog. 2013-11-18 01:36:29 +02:00
sledgehammer999
c2dbf50d0b Correctly update tracker tier number in the trackers tab. Closes #1075. 2013-11-18 01:33:38 +02:00
sledgehammer999
7bb99ceeea Fix WebUI link to 'Anonymous mode' explanation. Closes #1093. 2013-11-18 01:33:28 +02:00
sledgehammer999
44fff4f503 Update Changelog. 2013-11-16 21:59:56 +02:00
sledgehammer999
a087232404 Correctly detect if the browser supports gzip compression. 2013-11-16 21:53:09 +02:00
sledgehammer999
ac96667af2 WebUI: Don't gzip too small payloads. 2013-11-16 21:53:00 +02:00
sledgehammer999
8f5a0a273f Fix inhibit system functionality. Closes #766. 2013-11-16 21:52:51 +02:00
Artem S. Tashkinov
74869d87f6 Always show a peer IP address as a tool tip
Helps to see a peer IP address when reverse name resolution is enabled.
2013-11-16 21:52:40 +02:00
Artem S. Tashkinov
1f0ccabd1c Remove hardcoded Lucida Grande and decrease a font size 2013-11-16 21:52:31 +02:00
Zach Thibeau
c6e294a130 added fontfix for osx 2013-11-16 21:52:22 +02:00
Angel Alonso
96bff490a3 Strip some png to fix incorrect sRGB profiles.
libpng complained about incorrent sRGB profiles in some png's.
"libpng: iCCP: known incorrect sRGB profile".
2013-11-16 21:52:04 +02:00
Angel Alonso
7c3155ba44 Add a key shortcut to "Add link to torrent..."
"Ctrl-Shift-O" will open the "Add link to torrent..." window.
2013-11-16 21:51:52 +02:00
Zach Thibeau
74b26edc0d Updated search plugin's URL 2013-11-16 21:51:44 +02:00
sledgehammer999
959ee4c46b Update Changelog. 2013-11-10 04:14:47 +02:00
sledgehammer999
4a9b772b72 Fix indentation in lineedit code. 2013-11-10 04:13:02 +02:00
sledgehammer999
d5aef5c8cc Expand folders when filtering files. Closes #1076. 2013-11-10 04:12:52 +02:00
sledgehammer999
7780e9ad0a Hide empty folders after filtering. Closes #74. 2013-11-10 04:12:43 +02:00
sledgehammer999
4612a5a882 Update Changelog. 2013-11-09 21:24:16 +02:00
sledgehammer999
3a5fe38be0 Small optimization of WebUI responses when there isn't a data payload. 2013-11-09 21:19:43 +02:00
sledgehammer999
d68b0c529b Case insensitive sort in Peers list. Closes #1066. 2013-11-09 21:19:34 +02:00
sledgehammer999
c41082f610 Revert "fix missing conf.pri error". The WARNING message during configure is harmless. The file is found during make. Closes #1042.
This reverts commit 807f1cfb94.
2013-11-09 21:19:26 +02:00
sledgehammer999
b6af8f190c Make all columns and headers use the same text alignment in the transferlist. 2013-11-09 21:19:16 +02:00
126 changed files with 19258 additions and 10988 deletions

View File

@@ -1,3 +1,53 @@
* Thu 16 Jan 2014 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.1.5
- BUGFIX: Fix compilation with Qt 4.7. Closes #1215. (sledgehammer999)
- BUGFIX: Third attempt at fixing saving settings on OS shutdown. (sledgehammer999)
- BUGFIX: Preview now correctly uses the selected file. Closes #1222 #1182. (sledgehammer999)
- BUGFIX: Allow to resize the columns in Add New Torrent dialog. Closes #1207 #676 (sledgehammer999)
- BUGFIX: Ensure that at least one column in the tranferlist is always visible. Closes #1165. (sledgehammer999)
- BUGFIX: Ensure that the options window will always be placed onscreen. Closes #1226. (sledgehammer999)
- BUGFIX: Delete temporary files after they aren't needed. Closes #1188. (sledgehammer999)
- BUGFIX: Correctly detect libtorrent version. (sledgehammer999)
- BUGFIX: Various code cppcheck fixes (Konstantin Goncharik)
- BUGFIX: Remove isohunt search engine and update thepiratebay url (sledgehammer999)
- BUGFIX: Fix rss settings corruption when checking regexp and going to other rule. (Gelmir)
- BUGFIX: Don't count paused torrents for the autoshutdown. Closes #1280. (sledgehammer999)
- LINUX: Fix notifications with xfce4-notifyd.
- OSX: Added basic retina support. Closes #1251. (Sébastien Lavoie)
- OTHER: Sync translations from Transifex.
* Sun 29 Dec 2013 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.1.4
- FEATURE: Statistics dialog (Gelmir)
- FEATURE: Tooltips explaining each peer's connection flags (sledgehammer999)
- FEATURE: Win/Mac Check for program updates every 15min and allow the user to manually check for updates through the help menu. (sledgehammer999)
- BUGFIX: Better dialog message for torrent delete confirmation (sledgehammer999)
- BUGFIX: Fix resizing grip location. Closes #1146. (sledgehammer999)
- BUGFIX: Lock toolbar in place. Closes #1144. (sledgehammer999)
- BUGFIX: Second attempt at fixing saving settings on shutdown. (sledgehammer999)
- BUGFIX: Sort labels in 'Add new torrent' dialog. Closes #1150 #411. (sledgehammer999)
- LINUX: Fix build under Ubuntu 13.10 (sledgehammer999)
- LINUX: Make sleep and shutdown functions work on systemd's logind (Faheem Pervez)
* Mon Nov 20 2013 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.1.3
- FEATURE: Add a key shortcut to "Add link to torrent..." (Angel Alonso)
- BUGFIX: Make all columns and headers use the same text alignment in the transferlist. (sledgehammer999)
- BUGFIX: Fix build system for Unix/Linux. (sledgehammer999)
- BUGFIX: Case insensitive sort in Peers list. Closes #1066. (sledgehammer999)
- BUGFIX: Small optimization of WebUI responses when there isn't a data payload. (sledgehammer999)
- BUGFIX: Hide empty folders after filtering. Closes #74. (sledgehammer999)
- BUGFIX: Expand folders when filtering files. Closes #1076. (sledgehammer999)
- BUGFIX: Updated search plugin's URL (Zach Thibeau)
- BUGFIX: Strip some png to fix incorrect sRGB profiles. (Angel Alonso)
- BUGFIX: Fixed font issues on OSX Mavericks (Zach Thibeau)
- BUGFIX: Improve text in the About dialog (Artem S. Tashkinov)
- BUGFIX: Always show a peer IP address as a tool tip (Artem S. Tashkinov)
- BUGFIX: Fix inhibit system functionality. Closes #766. (sledgehammer999)
- BUGFIX: WebUI: Don't gzip too small payloads. (sledgehammer999)
- BUGFIX: Correctly detect if the browser supports gzip compression. (sledgehammer999)
- BUGFIX: Fix WebUI link to 'Anonymous mode' explanation. Closes #1093. (sledgehammer999)
- BUGFIX: Correctly update tracker tier number in the trackers tab. Closes #1075. (sledgehammer999)
- BUGFIX: Speed improvements.(sledgehammer999)
- OTHER: Updated translations.
* Tue Nov 05 2013 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.1.2
- BUGFIX: Fix WebUI gzip compression. Closes #1037. (sledgehammer999)
- BUGFIX: Fix compilation with qt < 4.8.0. Closes #1043. (sledgehammer999)

2
configure vendored
View File

@@ -511,7 +511,7 @@ public:
QStringList libDirs;
if (!s.isEmpty())
libDirs << s;
libDirs << "/usr/lib/" << "/usr/lib64/" << "/usr/local/lib/" << "/usr/local/lib64/";
libDirs << "/usr/lib/" << "/usr/lib/i386-linux-gnu/" << "/usr/lib64/" << "/usr/lib/x86_64-linux-gnu/" << "/usr/local/lib/" << "/usr/lib/local/i386-linux-gnu/" << "/usr/local/lib64/" << "/usr/local/lib/x86_64-linux-gnu/";
foreach(const QString& lib, required_libs) {
bool found = false;

View File

@@ -75,7 +75,7 @@ public:
QStringList libDirs;
if (!s.isEmpty())
libDirs << s;
libDirs << "/usr/lib/" << "/usr/lib64/" << "/usr/local/lib/" << "/usr/local/lib64/";
libDirs << "/usr/lib/" << "/usr/lib/i386-linux-gnu/" << "/usr/lib64/" << "/usr/lib/x86_64-linux-gnu/" << "/usr/local/lib/" << "/usr/lib/local/i386-linux-gnu/" << "/usr/local/lib64/" << "/usr/local/lib/x86_64-linux-gnu/";
foreach(const QString& lib, required_libs) {
bool found = false;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 590 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 522 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 583 B

View File

@@ -50,7 +50,7 @@ class about : public QDialog, private Ui::AboutDlg{
setAttribute(Qt::WA_DeleteOnClose);
// About
QString aboutText =
QString::fromUtf8("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\"><html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">p, li { white-space: pre-wrap; }</style></head><body style=\" font-family:'Lucida Grande'; font-size:13pt; font-weight:400; font-style:normal;\"><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">") +
QString::fromUtf8("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\"><html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">p, li { white-space: pre-wrap; }</style></head><body style=\" font-size:11pt; font-weight:400; font-style:normal;\"><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">") +
tr("An advanced BitTorrent client programmed in C++, based on Qt4 toolkit and libtorrent-rasterbar.") +
QString::fromUtf8(" <br /><br />") +
trUtf8("Copyright ©2006-2013 The qBittorrent project") +

View File

@@ -81,6 +81,8 @@ AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent) :
foreach (const QString& label, customLabels) {
ui->label_combo->addItem(label);
}
ui->label_combo->model()->sort(0);
ui->content_tree->header()->setSortIndicator(0, Qt::AscendingOrder);
loadState();
// Signal / slots
connect(ui->adv_button, SIGNAL(clicked(bool)), SLOT(showAdvancedSettings(bool)));
@@ -213,13 +215,13 @@ bool AddNewTorrentDialog::loadTorrent(const QString& torrent_path, const QString
ui->date_lbl->setText(m_torrentInfo->creation_date() ? misc::toQString(*m_torrentInfo->creation_date()) : tr("Not available"));
updateDiskSpaceLabel();
#if LIBTORRENT_VERSION_NUM >= 001600
#if LIBTORRENT_VERSION_NUM >= 1600
file_storage fs = m_torrentInfo->files();
#endif
// Populate m_filesList
for (int i = 0; i < m_torrentInfo->num_files(); ++i) {
#if LIBTORRENT_VERSION_NUM >= 001600
#if LIBTORRENT_VERSION_NUM >= 1600
m_filesPath << misc::toQStringU(fs.file_path(m_torrentInfo->file_at(i)));
#else
m_filesPath << misc::toQStringU(m_torrentInfo->file_at(i).path.string());
@@ -242,10 +244,9 @@ bool AddNewTorrentDialog::loadTorrent(const QString& torrent_path, const QString
// Expand root folder
ui->content_tree->setExpanded(m_contentModel->index(0, 0), true);
ui->content_tree->header()->setResizeMode(0, QHeaderView::Stretch);
} else {
// Update save paths (append file name to them)
#if LIBTORRENT_VERSION_NUM >= 001600
#if LIBTORRENT_VERSION_NUM >= 1600
QString single_file_relpath = misc::toQStringU(fs.file_path(m_torrentInfo->file_at(0)));
#else
QString single_file_relpath = misc::toQStringU(m_torrentInfo->file_at(0).path.string());
@@ -674,13 +675,13 @@ void AddNewTorrentDialog::updateMetadata(const QTorrentHandle &h) {
ui->date_lbl->setText(m_torrentInfo->creation_date() ? misc::toQString(*m_torrentInfo->creation_date()) : tr("Not available"));
updateDiskSpaceLabel();
#if LIBTORRENT_VERSION_NUM >= 001600
#if LIBTORRENT_VERSION_NUM >= 1600
file_storage fs = m_torrentInfo->files();
#endif
// Populate m_filesList
for (int i = 0; i < m_torrentInfo->num_files(); ++i) {
#if LIBTORRENT_VERSION_NUM >= 001600
#if LIBTORRENT_VERSION_NUM >= 1600
m_filesPath << misc::toQStringU(fs.file_path(m_torrentInfo->file_at(i)));
#else
m_filesPath << misc::toQStringU(m_torrentInfo->file_at(i).path.string());
@@ -703,10 +704,9 @@ void AddNewTorrentDialog::updateMetadata(const QTorrentHandle &h) {
// Expand root folder
ui->content_tree->setExpanded(m_contentModel->index(0, 0), true);
ui->content_tree->header()->setResizeMode(0, QHeaderView::Stretch);
} else {
// Update save paths (append file name to them)
#if LIBTORRENT_VERSION_NUM >= 001600
#if LIBTORRENT_VERSION_NUM >= 1600
QString single_file_relpath = misc::toQStringU(fs.file_path(m_torrentInfo->file_at(0)));
#else
QString single_file_relpath = misc::toQStringU(m_torrentInfo->file_at(0).path.string());

View File

@@ -176,9 +176,6 @@
<property name="sortingEnabled">
<bool>true</bool>
</property>
<attribute name="headerStretchLastSection">
<bool>false</bool>
</attribute>
</widget>
</item>
</layout>

View File

@@ -44,7 +44,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Are you sure you want to delete the selected torrents from the transfer list?</string>
<string notr="true">deletion message goes here</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>

View File

@@ -40,8 +40,12 @@ class DeletionConfirmationDlg : public QDialog, private Ui::confirmDeletionDlg {
Q_OBJECT
public:
DeletionConfirmationDlg(QWidget *parent=0): QDialog(parent) {
DeletionConfirmationDlg(QWidget *parent, const int &size, const QString &name): QDialog(parent) {
setupUi(this);
if (size == 1)
label->setText(tr("Are you sure you want to delete \"%1\" from the transfer list?", "Are you sure you want to delete \"ubuntu-linux-iso\" from the transfer list?").arg(name));
else
label->setText(tr("Are you sure you want to delete these %1 torrents from the transfer list?", "Are you sure you want to delete these 5 torrents from the transfer list?").arg(QString::number(size)));
// Icons
lbl_warn->setPixmap(IconProvider::instance()->getIcon("dialog-warning").pixmap(lbl_warn->height()));
lbl_warn->setFixedWidth(lbl_warn->height());
@@ -57,10 +61,10 @@ class DeletionConfirmationDlg : public QDialog, private Ui::confirmDeletionDlg {
return checkPermDelete->isChecked();
}
static bool askForDeletionConfirmation(bool *delete_local_files) {
DeletionConfirmationDlg dlg;
static bool askForDeletionConfirmation(bool& delete_local_files, const int& size, const QString& name) {
DeletionConfirmationDlg dlg(NULL, size, name);
if (dlg.exec() == QDialog::Accepted) {
*delete_local_files = dlg.shouldDeleteLocalFiles();
delete_local_files = dlg.shouldDeleteLocalFiles();
return true;
}
return false;

View File

@@ -134,8 +134,8 @@ void DownloadThread::processDlFinished(QNetworkReply* reply) {
}
// Success
QTemporaryFile *tmpfile = new QTemporaryFile;
tmpfile->setAutoRemove(false);
if (tmpfile->open()) {
tmpfile->setAutoRemove(false);
QString filePath = tmpfile->fileName();
qDebug("Temporary filename is: %s", qPrintable(filePath));
if (reply->isOpen() || reply->open(QIODevice::ReadOnly)) {
@@ -153,6 +153,7 @@ void DownloadThread::processDlFinished(QNetworkReply* reply) {
emit downloadFinished(url, filePath);
} else {
delete tmpfile;
fsutils::forceRemove(filePath);
// Error when reading the request
emit downloadFailure(url, tr("I/O Error"));
}

View File

@@ -41,6 +41,7 @@ class HeadlessLoader: public QObject {
public:
HeadlessLoader(const QStringList &torrentCmdLine) {
connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(shutdownCleanUp()), Qt::DirectConnection);
Preferences pref;
// Enable Web UI
pref.setWebUiEnabled(true);
@@ -61,11 +62,12 @@ public:
}
}
~HeadlessLoader() {
public slots:
void shutdownCleanUp() {
Preferences().sync();
QBtSession::drop();
}
public slots:
// Call this function to exit qBittorrent headless loader
// and return to prompt (object will be deleted by main)
void exit() {

View File

@@ -314,6 +314,7 @@
<file>Icons/oxygen/view-filter.png</file>
<file>Icons/oxygen/view-preview.png</file>
<file>Icons/oxygen/view-refresh.png</file>
<file>Icons/oxygen/view-statistics.png</file>
<file>Icons/oxygen/wallet-open.png</file>
<file>Icons/oxygen/webui.png</file>
<file>Icons/skin/arrow-right.gif</file>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More