mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
- Removed some too verbose debug
- Suppress a Qt warning about the layout in status bar
This commit is contained in:
parent
b64919234a
commit
e93fab40fe
@ -1135,7 +1135,7 @@ void bittorrent::loadFilesPriorities(QTorrentHandle &h) {
|
|||||||
if( priority < 0 || priority > 7) {
|
if( priority < 0 || priority > 7) {
|
||||||
priority = 1;
|
priority = 1;
|
||||||
}
|
}
|
||||||
qDebug("Setting file piority to %d", priority);
|
//qDebug("Setting file piority to %d", priority);
|
||||||
v.push_back(priority);
|
v.push_back(priority);
|
||||||
}
|
}
|
||||||
if(v.size() == (unsigned int)h.num_files())
|
if(v.size() == (unsigned int)h.num_files())
|
||||||
@ -1887,7 +1887,7 @@ void bittorrent::importOldTempData(QString torrent_path) {
|
|||||||
if( priority < 0 || priority > 7) {
|
if( priority < 0 || priority > 7) {
|
||||||
priority = 1;
|
priority = 1;
|
||||||
}
|
}
|
||||||
qDebug("Setting piece piority to %d", priority);
|
//qDebug("Setting piece piority to %d", priority);
|
||||||
pp.push_back(priority);
|
pp.push_back(priority);
|
||||||
}
|
}
|
||||||
TorrentTempData::setFilesPriority(hash, pp);
|
TorrentTempData::setFilesPriority(hash, pp);
|
||||||
|
@ -60,7 +60,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
StatusBar(QStatusBar *bar, bittorrent *BTSession): bar(bar), BTSession(BTSession) {
|
StatusBar(QStatusBar *bar, bittorrent *BTSession): bar(bar), BTSession(BTSession) {
|
||||||
container = new QWidget();
|
container = new QWidget();
|
||||||
layout = new QGridLayout(bar);
|
layout = new QGridLayout(container);
|
||||||
layout->setVerticalSpacing(0);
|
layout->setVerticalSpacing(0);
|
||||||
layout->setContentsMargins(0,0,0,0);
|
layout->setContentsMargins(0,0,0,0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user