You've already forked qBittorrent
mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-10-09 18:32:15 +02:00
Compare commits
32 Commits
v3_0_x
...
release-2.
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7c192141d2 | ||
![]() |
0180f46dc9 | ||
![]() |
6e4d15e72d | ||
![]() |
3e1e992fa8 | ||
![]() |
6051aa57cf | ||
![]() |
55b0cac61b | ||
![]() |
28409b83c3 | ||
![]() |
eed0b6ca12 | ||
![]() |
4b0fae88bc | ||
![]() |
6ff3de7686 | ||
![]() |
f08d792e67 | ||
![]() |
e2edf62834 | ||
![]() |
eb4c449620 | ||
![]() |
c06386126b | ||
![]() |
8c854b8a0e | ||
![]() |
749c3a429a | ||
![]() |
a6edea2222 | ||
![]() |
d66c88d59e | ||
![]() |
b92c152d30 | ||
![]() |
148ec32825 | ||
![]() |
8298b62f56 | ||
![]() |
53f46875d8 | ||
![]() |
a67caf1730 | ||
![]() |
6a38f69fad | ||
![]() |
d5bf2b2e1f | ||
![]() |
f6df1c7fed | ||
![]() |
fa88bce77d | ||
![]() |
571465ff7e | ||
![]() |
09a3f78a28 | ||
![]() |
f98520e6c2 | ||
![]() |
0211f3aee3 | ||
![]() |
0dcd33fb6d |
22
Changelog
22
Changelog
@@ -1,3 +1,25 @@
|
||||
* Sat Jan 1 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.5.3
|
||||
- BUGFIX: Fix priority up/down for multiple torrents at the same time (closes #692184)
|
||||
- BUGFIX: Make sure the number of torrents is properly set on startup (closes #694135)
|
||||
- BUGFIX: Fix scan directories saving (closes #694768)
|
||||
- BUGFIX: Remove empty folders on torrent soft deletion (closes #695174)
|
||||
- BUGFIX: Make sure the main window has focus on startup
|
||||
- BUGFIX: Fix ampersand display in search tabs (closes #695715)
|
||||
|
||||
* Sun Dec 19 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.5.2
|
||||
- BUGFIX: Fix alternative speed icon staying pressed when disabled
|
||||
- BUGFIX: Fix slot warning on startup
|
||||
- BUGFIX: Fix alignment issues in program preferences
|
||||
- BUGFIX: Make sure we don't move completed torrent to the temp directory
|
||||
for checking (closes #602938)
|
||||
- BUGFIX: Fix some 'File Not found' warning in the Web UI
|
||||
- BUGFIX: Fix dangerous usage of vector iterator
|
||||
- BUGFIX: No longer expand the first folder in the torrent content list
|
||||
- BUGFIX: Fixes possible crash in the RSS Downloader dialog (closes #691426)
|
||||
|
||||
* Sun Dec 5 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.5.1
|
||||
- BUGFIX: Fix possible crash when right-clicking on a torrent
|
||||
|
||||
* Sun Dec 5 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.5.0
|
||||
- FEATURE: qBittorrent can now act as a tracker
|
||||
- FEATURE: New and improved RSS feed automated downloader
|
||||
|
5
configure
vendored
5
configure
vendored
@@ -32,7 +32,8 @@ Dependency options:
|
||||
executable (please follow
|
||||
instructions in
|
||||
src/geoip/README)
|
||||
--disable-qtsingleapplication Disable use of libboost
|
||||
--disable-qtsingleapplication Disable use of
|
||||
qtsingleapplication
|
||||
--with-qtsingleapplication=[system|shipped] Use the shipped
|
||||
qtsingleapplication library
|
||||
or the system one
|
||||
@@ -609,7 +610,7 @@ public:
|
||||
#line 1 "qtsingleapplication.qcm"
|
||||
/*
|
||||
-----BEGIN QCMOD-----
|
||||
name: libboost
|
||||
name: qtsingleapplication
|
||||
arg: with-qtsingleapplication=[system|shipped], Use the shipped qtsingleapplication library or the system one
|
||||
-----END QCMOD-----
|
||||
*/
|
||||
|
136
install.os2
Normal file
136
install.os2
Normal file
@@ -0,0 +1,136 @@
|
||||
QBittorrent installation
|
||||
|
||||
|
||||
|
||||
0. CONTENTS OF THIS FILE
|
||||
========================
|
||||
|
||||
1. INTRODUCTION
|
||||
|
||||
2. REQUIREMENTS
|
||||
|
||||
3. INSTALLATION
|
||||
|
||||
4. CONTACT
|
||||
|
||||
5. CREDITS
|
||||
|
||||
6. SUPPORT AND DONATIONS
|
||||
|
||||
7. HISTORY
|
||||
|
||||
|
||||
1. INTRODUCTION
|
||||
===============
|
||||
|
||||
Welcome to QBittorrent port for OS/2 and eComStation.
|
||||
|
||||
|
||||
2. REQUIREMENTS
|
||||
===============
|
||||
|
||||
* klibc 0.6.3 or later
|
||||
|
||||
ftp://ftp.netlabs.org/pub/gcc/libc-0_6_3-csd3.wpi
|
||||
|
||||
* openssl 1.0
|
||||
|
||||
ftp://ftp.netlabs.org/pub/unixos2/ssl10.zip
|
||||
|
||||
* Qt4 dll
|
||||
|
||||
see http://svn.netlabs.org/qt4 for more information whats needed and where to get the latest
|
||||
|
||||
|
||||
3. INSTALLATION
|
||||
===============
|
||||
|
||||
To install QBittorrent, do the following:
|
||||
|
||||
klibc
|
||||
-----
|
||||
|
||||
1. Download klibc 0.6.3 csd3 or later.
|
||||
2. Install the package by double-clicking on the WPI file.
|
||||
|
||||
|
||||
openssl 1.0
|
||||
-----------
|
||||
|
||||
1. Download the zip file
|
||||
2. Install the files to your libpath eg. x:\ecs\dll
|
||||
|
||||
Qt4 dll
|
||||
-------
|
||||
|
||||
1. Download the package
|
||||
2. Install the package by double-clicking on the wpi file.
|
||||
|
||||
|
||||
|
||||
QBittorrent
|
||||
-----------
|
||||
|
||||
1. Create a directory for QBittorrent.
|
||||
2. Extract the QBittorrent package to the new directory.
|
||||
3. Create a WPS object for QBittorrent.exe.
|
||||
4. Start QBittorrent
|
||||
5. Happy torrenting
|
||||
|
||||
|
||||
|
||||
4. CONTACT
|
||||
==========
|
||||
|
||||
Please send bugreports to:
|
||||
|
||||
ecs@aroa.ch
|
||||
|
||||
Only bug reports with a reproducable bug are accepted. :-)
|
||||
|
||||
|
||||
|
||||
5. CREDITS
|
||||
==========
|
||||
|
||||
The port was done by:
|
||||
|
||||
Silvan Scherrer aka _diver
|
||||
|
||||
Thanks go to:
|
||||
|
||||
* Dmitry A. Kuminov
|
||||
|
||||
They either helped me when I had some nasty questions or did some testing for
|
||||
me.
|
||||
|
||||
|
||||
6. SUPPORT AND DONATIONS
|
||||
========================
|
||||
|
||||
QBittorrent port is based on volunteer work. If you would like to support further
|
||||
development, you can do so in one of the following ways:
|
||||
|
||||
|
||||
* Donate to the Qt4 project: see qt.netlabs.org for more information
|
||||
|
||||
* Contribute to the project: Besides actual development, this also includes
|
||||
maintaining the documentation and the project web site as well as help
|
||||
for users.
|
||||
|
||||
|
||||
7. HISTORY
|
||||
==========
|
||||
|
||||
2010-12-23
|
||||
|
||||
* updated to 2.5.2 code level of QBittorrent
|
||||
|
||||
2010-11-22
|
||||
|
||||
* updated to 2.4.11 code level of QBittorrent
|
||||
|
||||
2010-xx-xx
|
||||
|
||||
* initial port
|
||||
|
@@ -1,3 +1,10 @@
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
exists(conf.pri) {
|
||||
# to the conf.pri goes all system dependent stuff
|
||||
include(conf.pri)
|
||||
}
|
||||
|
||||
LIBS += -ltorrent-rasterbar \
|
||||
-lboost_thread \
|
||||
-lboost_system \
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
-----BEGIN QCMOD-----
|
||||
name: libboost
|
||||
name: qtsingleapplication
|
||||
arg: with-qtsingleapplication=[system|shipped], Use the shipped qtsingleapplication library or the system one
|
||||
-----END QCMOD-----
|
||||
*/
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Categories=Qt;Network;P2P;
|
||||
Comment=V2.5.0
|
||||
Comment=V2.5.3
|
||||
Exec=qbittorrent %f
|
||||
GenericName=Bittorrent client
|
||||
GenericName[ar]=العميل Bittorrent
|
||||
|
@@ -47,7 +47,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>2.5.0</string>
|
||||
<string>2.5.3</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
|
@@ -3986,12 +3986,12 @@ Please install it manually.</source>
|
||||
<translation>اضغط هنا لتشغيل حد السرعة البديل</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>حد سرعة التحميل العامة</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>حد سرعة الرفع العامة</translation>
|
||||
</message>
|
||||
|
@@ -3927,12 +3927,12 @@ Please install it manually.</source>
|
||||
<translation>Щракни за включване на други ограничения за скорост</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Общ лимит Скорост на сваляне</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Общ лимит Скорост на качване</translation>
|
||||
</message>
|
||||
|
@@ -3758,12 +3758,12 @@ Si us plau, instal-li'l de forma manual.</translation>
|
||||
<translation>Click per activar els límits de velocitat alternativa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Velocitat límit global de descàrrega</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Velocitat límit global de pujada</translation>
|
||||
</message>
|
||||
|
@@ -3990,12 +3990,12 @@ Nainstalujte jej prosím ručně.</translation>
|
||||
<translation>Kliknutí zapne alternativní limity rychlosti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Celkový limit rychlosti stahování</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Celkový limit rychlosti nahrávání</translation>
|
||||
</message>
|
||||
|
@@ -3500,12 +3500,12 @@ Please install it manually.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Global begrænsning af downloadhastighed</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Global begrænsning af upload hastighed</translation>
|
||||
</message>
|
||||
|
@@ -3883,12 +3883,12 @@ Please install it manually.</source>
|
||||
<translation>Klicken um alternative Geschwindigkeitsbegrenzungen zu aktivieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Begrenzung der globalen DL-Rate</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Begrenzung der globalen UL-Rate</translation>
|
||||
</message>
|
||||
|
@@ -3938,12 +3938,12 @@ Please install it manually.</source>
|
||||
<translation>Κλικ για ενεργοποίηση εναλλακτικών ορίων ταχύτητας</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Συνολικό Όριο Ταχύτητας Λήψης</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Συνολικό Όριο Ταχύτητας Αποστολής</translation>
|
||||
</message>
|
||||
|
@@ -3024,12 +3024,12 @@ Please install it manually.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@@ -3762,12 +3762,12 @@ Por favor, instálelo de forma manual.</translation>
|
||||
<translation>Click para activar los límites de velocidad alternativa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Velocidad límite global de descarga</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Velocidad límite global de subida</translation>
|
||||
</message>
|
||||
|
@@ -3896,12 +3896,12 @@ Asenna se itse.</translation>
|
||||
<translation>Napsauta ottaaksesi vaihtoehtoinen nopeusrajoitus käyttöön</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Yleinen latausnopeusrajoitus</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Yleinen lähetysnopeusrajoitus</translation>
|
||||
</message>
|
||||
|
@@ -3977,12 +3977,12 @@ Veuillez l'installer manuellement.</translation>
|
||||
<translation>Cliquer pour activer les limites de vitesse alternatives</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Limite globale de la vitesse de réception</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Limite globale de la vitesse d'envoi</translation>
|
||||
</message>
|
||||
|
@@ -3933,12 +3933,12 @@ Kérlek telepítsd manuálisan.</translation>
|
||||
<translation>Alternatív sebesség korlátok engedélyezéséhez kattints ide</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Teljes letöltési sebesség korlát</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Teljes feltöltési sebesség korlát</translation>
|
||||
</message>
|
||||
|
@@ -4019,12 +4019,12 @@ Per favore installalo manualmente.</translation>
|
||||
<translation>Clicca per abilitare i limiti alternativi di velocità</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>Limite globale download</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>Limite globale upload</translation>
|
||||
</message>
|
||||
|
@@ -3259,12 +3259,12 @@ Please install it manually.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@@ -3564,12 +3564,12 @@ Please install it manually.</source>
|
||||
<translation>설정한 속도 제한을 사용하기</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation>전체 다운 속도 제한</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation>전체 업로드 속도 제한</translation>
|
||||
</message>
|
||||
|
@@ -3141,12 +3141,12 @@ Please install it manually.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="226"/>
|
||||
<location filename="../statusbar.h" line="227"/>
|
||||
<source>Global Download Speed Limit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../statusbar.h" line="246"/>
|
||||
<location filename="../statusbar.h" line="247"/>
|
||||
<source>Global Upload Speed Limit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -263,9 +263,9 @@ int main(int argc, char *argv[]){
|
||||
painter.setFont(QFont("Arial", 22, QFont::Black));
|
||||
painter.drawText(224 - painter.fontMetrics().width(version), 270, version);
|
||||
splash = new QSplashScreen(splash_img, Qt::WindowStaysOnTopHint);
|
||||
QTimer::singleShot(1500, splash, SLOT(deleteLater()));
|
||||
splash->show();
|
||||
app.processEvents();
|
||||
QTimer::singleShot(2000, splash, SLOT(deleteLater()));
|
||||
}
|
||||
#endif
|
||||
// Set environment variable
|
||||
@@ -296,6 +296,8 @@ int main(int argc, char *argv[]){
|
||||
torrentCmdLine.removeFirst();
|
||||
#ifndef DISABLE_GUI
|
||||
MainWindow window(0, torrentCmdLine);
|
||||
if(!no_splash)
|
||||
window.raise();
|
||||
QObject::connect(&app, SIGNAL(messageReceived(const QString&)),
|
||||
&window, SLOT(processParams(const QString&)));
|
||||
app.setActivationWindow(&window);
|
||||
|
@@ -98,7 +98,7 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
||||
setWindowTitle(tr("qBittorrent %1", "e.g: qBittorrent v0.x").arg(QString::fromUtf8(VERSION)));
|
||||
displaySpeedInTitle = pref.speedInTitleBar();
|
||||
// Clean exit on log out
|
||||
connect(static_cast<SessionApplication*>(qApp), SIGNAL(sessionIsShuttingDown()), this, SLOT(deleteQBtSession::instance()()));
|
||||
connect(static_cast<SessionApplication*>(qApp), SIGNAL(sessionIsShuttingDown()), this, SLOT(deleteBTSession()));
|
||||
// Setting icons
|
||||
this->setWindowIcon(QIcon(QString::fromUtf8(":/Icons/skin/qbittorrent32.png")));
|
||||
actionOpen->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/open.png")));
|
||||
@@ -163,8 +163,6 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
||||
vSplitter->setCollapsible(0, true);
|
||||
vSplitter->setCollapsible(1, false);
|
||||
tabs->addTab(vSplitter, QIcon(QString::fromUtf8(":/Icons/oxygen/folder-remote.png")), tr("Transfers"));
|
||||
connect(transferList->getSourceModel(), SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(updateNbTorrents()));
|
||||
connect(transferList->getSourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)), this, SLOT(updateNbTorrents()));
|
||||
|
||||
vboxLayout->addWidget(tabs);
|
||||
|
||||
@@ -227,6 +225,8 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
||||
} else {
|
||||
if(pref.startMinimized())
|
||||
showMinimized();
|
||||
else
|
||||
setFocus();
|
||||
}
|
||||
|
||||
// Start watching the executable for updates
|
||||
@@ -242,6 +242,11 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
||||
// Populate the transfer list
|
||||
transferList->getSourceModel()->populate();
|
||||
|
||||
// Update the number of torrents (tab)
|
||||
updateNbTorrents();
|
||||
connect(transferList->getSourceModel(), SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(updateNbTorrents()));
|
||||
connect(transferList->getSourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)), this, SLOT(updateNbTorrents()));
|
||||
|
||||
qDebug("GUI Built");
|
||||
#ifdef Q_WS_WIN
|
||||
if(!pref.neverCheckFileAssoc() && !Preferences::isFileAssocOk()) {
|
||||
@@ -263,6 +268,7 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
||||
connect(updater, SIGNAL(updateCheckFinished(bool, QString)), SLOT(handleUpdateCheckFinished(bool, QString)));
|
||||
updater->checkForUpdates();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::deleteBTSession() {
|
||||
@@ -515,7 +521,14 @@ void MainWindow::displayRSSTab() const {
|
||||
void MainWindow::askRecursiveTorrentDownloadConfirmation(const QTorrentHandle &h) {
|
||||
Preferences pref;
|
||||
if(pref.recursiveDownloadDisabled()) return;
|
||||
QMessageBox confirmBox(QMessageBox::Question, tr("Recursive download confirmation"), tr("The torrent %1 contains torrent files, do you want to proceed with their download?").arg(h.name()));
|
||||
// Get Torrent name
|
||||
QString torrent_name;
|
||||
try {
|
||||
torrent_name = h.name();
|
||||
} catch(invalid_handle&){
|
||||
return;
|
||||
}
|
||||
QMessageBox confirmBox(QMessageBox::Question, tr("Recursive download confirmation"), tr("The torrent %1 contains torrent files, do you want to proceed with their download?").arg(torrent_name));
|
||||
QPushButton *yes = confirmBox.addButton(tr("Yes"), QMessageBox::YesRole);
|
||||
/*QPushButton *no = */confirmBox.addButton(tr("No"), QMessageBox::NoRole);
|
||||
QPushButton *never = confirmBox.addButton(tr("Never"), QMessageBox::NoRole);
|
||||
|
19
src/misc.cpp
19
src/misc.cpp
@@ -557,19 +557,6 @@ bool misc::isPreviewable(QString extension){
|
||||
return false;
|
||||
}
|
||||
|
||||
bool misc::removeEmptyTree(QString path) {
|
||||
QDir dir(path);
|
||||
foreach(const QString &child, dir.entryList(QDir::AllDirs)) {
|
||||
if(child == "." || child == "..") continue;
|
||||
return removeEmptyTree(dir.absoluteFilePath(child));
|
||||
}
|
||||
const QString dir_name = dir.dirName();
|
||||
if(dir.cdUp()) {
|
||||
return dir.rmdir(dir_name);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
QString misc::bcLinkToMagnet(QString bc_link) {
|
||||
QByteArray raw_bc = bc_link.toUtf8();
|
||||
raw_bc = raw_bc.mid(8); // skip bc://bt/
|
||||
@@ -759,3 +746,9 @@ bool misc::isValidTorrentFile(const QString &torrent_path) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
QString misc::branchPath(QString file_path)
|
||||
{
|
||||
file_path.replace("\\", "/");
|
||||
return file_path.left(file_path.lastIndexOf('/'));
|
||||
}
|
||||
|
@@ -149,7 +149,7 @@ public:
|
||||
// value must be given in bytes
|
||||
static QString friendlyUnit(double val);
|
||||
static bool isPreviewable(QString extension);
|
||||
static bool removeEmptyTree(QString path);
|
||||
static QString branchPath(QString file_path);
|
||||
static QString magnetUriToName(QString magnet_uri);
|
||||
static QString magnetUriToHash(QString magnet_uri);
|
||||
static QString bcLinkToMagnet(QString bc_link);
|
||||
|
@@ -566,7 +566,7 @@
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QGroupBox::title {
|
||||
font-weight: normal;
|
||||
margin-left: 10px;
|
||||
margin-left: 0px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
QGroupBox {
|
||||
@@ -642,7 +642,7 @@ QGroupBox {
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QGroupBox::title {
|
||||
font-weight: normal;
|
||||
margin-left: 10px;
|
||||
margin-left: 0px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
QGroupBox {
|
||||
@@ -706,7 +706,7 @@ QGroupBox {
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QGroupBox::title {
|
||||
font-weight: normal;
|
||||
margin-left: 10px;
|
||||
margin-left: 0px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
QGroupBox {
|
||||
@@ -806,7 +806,7 @@ QGroupBox {
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QGroupBox::title {
|
||||
font-weight: normal;
|
||||
margin-left: 10px;
|
||||
margin-left: 0px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
QGroupBox {
|
||||
@@ -939,7 +939,7 @@ QGroupBox {
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<y>-51</y>
|
||||
<width>507</width>
|
||||
<height>485</height>
|
||||
</rect>
|
||||
@@ -1797,7 +1797,7 @@ QGroupBox {
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<y>-25</y>
|
||||
<width>570</width>
|
||||
<height>422</height>
|
||||
</rect>
|
||||
@@ -1814,7 +1814,7 @@ QGroupBox {
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QGroupBox::title {
|
||||
font-weight: normal;
|
||||
margin-left: 10px;
|
||||
margin-left: 0px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
QGroupBox {
|
||||
@@ -1836,7 +1836,7 @@ QGroupBox {
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QGroupBox::title {
|
||||
font-weight: normal;
|
||||
margin-left: 10px;
|
||||
margin-left: 0px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
QGroupBox {
|
||||
|
@@ -341,7 +341,7 @@ void options_imp::saveOptions(){
|
||||
pref.preAllocateAllFiles(preAllocateAllFiles());
|
||||
pref.useAdditionDialog(useAdditionDialog());
|
||||
pref.addTorrentsInPause(addTorrentsInPause());
|
||||
ScanFoldersModel::instance()->makePersistent(pref);
|
||||
ScanFoldersModel::instance()->makePersistent();
|
||||
addedScanDirs.clear();
|
||||
QString export_dir = getExportDir();
|
||||
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
|
||||
|
@@ -247,8 +247,6 @@ void PropertiesWidget::loadTorrentInfos(const QTorrentHandle &_h) {
|
||||
loadUrlSeeds();
|
||||
// List files in torrent
|
||||
PropListModel->setupModelData(h.get_torrent_info());
|
||||
// Expand first item if possible
|
||||
filesList->expand(PropListModel->index(0, 0));
|
||||
}
|
||||
} catch(invalid_handle& e) {
|
||||
|
||||
@@ -633,7 +631,8 @@ void PropertiesWidget::renameSelectedFile() {
|
||||
// Remove old folder
|
||||
const QDir old_folder(h.save_path()+"/"+old_path);
|
||||
int timeout = 10;
|
||||
while(!misc::removeEmptyTree(old_folder.absolutePath()) && timeout > 0) {
|
||||
while(!QDir().rmpath(old_folder.absolutePath()) && timeout > 0) {
|
||||
// XXX: We should not sleep here (freezes the UI for 1 second)
|
||||
SleeperThread::msleep(100);
|
||||
--timeout;
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user