mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 03:14:44 +00:00
Added debug output
This commit is contained in:
parent
82877a9afa
commit
a4c1b93a42
@ -917,8 +917,8 @@ void MainWindow::processParams(const QString& params_str) {
|
||||
}
|
||||
|
||||
void MainWindow::processParams(const QStringList& params) {
|
||||
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||
const bool useTorrentAdditionDialog = settings.value(QString::fromUtf8("Preferences/Downloads/AdditionDialog"), true).toBool();
|
||||
Preferences pref;
|
||||
const bool useTorrentAdditionDialog = pref.useAdditionDialog();
|
||||
foreach(QString param, params) {
|
||||
param = param.trimmed();
|
||||
if(misc::isUrl(param)) {
|
||||
|
@ -130,6 +130,7 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, MainWindow* main_window, Tra
|
||||
}
|
||||
|
||||
PropertiesWidget::~PropertiesWidget() {
|
||||
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||
saveFilesListState();
|
||||
delete refreshTimer;
|
||||
delete trackerList;
|
||||
@ -139,6 +140,7 @@ PropertiesWidget::~PropertiesWidget() {
|
||||
delete PropListModel;
|
||||
delete PropDelegate;
|
||||
delete m_tabBar;
|
||||
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||
}
|
||||
|
||||
void PropertiesWidget::showPiecesAvailability(bool show) {
|
||||
|
@ -224,8 +224,10 @@ void TorrentModel::populate() {
|
||||
}
|
||||
|
||||
TorrentModel::~TorrentModel() {
|
||||
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||
qDeleteAll(m_torrents);
|
||||
m_torrents.clear();
|
||||
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||
}
|
||||
|
||||
QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include <QPushButton>
|
||||
#include <QHBoxLayout>
|
||||
#include <QFontMetrics>
|
||||
#include <QDebug>
|
||||
#include "qbtsession.h"
|
||||
#include "speedlimitdlg.h"
|
||||
#include "iconprovider.h"
|
||||
@ -136,6 +137,7 @@ public:
|
||||
}
|
||||
|
||||
~StatusBar() {
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
QPushButton* connectionStatusButton() const {
|
||||
|
@ -345,8 +345,10 @@ public:
|
||||
}
|
||||
|
||||
~TorrentFilesModel() {
|
||||
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||
delete [] files_index;
|
||||
delete rootItem;
|
||||
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||
}
|
||||
|
||||
void updateFilesProgress(std::vector<libtorrent::size_type> fp) {
|
||||
@ -625,7 +627,9 @@ public:
|
||||
}
|
||||
|
||||
~TorrentFilesFilterModel() {
|
||||
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||
delete m_model;
|
||||
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||
}
|
||||
|
||||
TorrentFilesModel* model() const {
|
||||
|
@ -129,6 +129,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window,
|
||||
}
|
||||
|
||||
TransferListWidget::~TransferListWidget() {
|
||||
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||
// Save settings
|
||||
saveSettings();
|
||||
// Clean up
|
||||
@ -137,6 +138,7 @@ TransferListWidget::~TransferListWidget() {
|
||||
delete nameFilterModel;
|
||||
delete listModel;
|
||||
delete listDelegate;
|
||||
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||
}
|
||||
|
||||
TorrentModel* TransferListWidget::getSourceModel() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user