BUGFIX: Display the priority column when the queueing system gets enabled

This commit is contained in:
Christophe Dumez
2010-10-18 17:08:25 +00:00
parent 5471600dfb
commit 29a76ae600
3 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.4.7
- BUGFIX: Display the priority column when the queueing system gets enabled
* Sun Oct 17 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.6
- BUGFIX: Fix "torrent seeding after creation" feature
- BUGFIX: The properties panel data would sometimes not match the selected torrent

View File

@@ -964,7 +964,7 @@ void GUI::loadPreferences(bool configure_session) {
properties->getPeerList()->setAlternatingRowColors(Preferences::useAlternatingRowColors());
// Queueing System
if(Preferences::isQueueingSystemEnabled()) {
if(!configure_session || !BTSession->isQueueingEnabled()) {
if(!actionDecreasePriority->isVisible()) {
transferList->hidePriorityColumn(false);
actionDecreasePriority->setVisible(true);
actionIncreasePriority->setVisible(true);
@@ -973,7 +973,7 @@ void GUI::loadPreferences(bool configure_session) {
toolBar->layout()->setSpacing(7);
}
} else {
if(BTSession->isQueueingEnabled()) {
if(actionDecreasePriority->isVisible()) {
transferList->hidePriorityColumn(true);
actionDecreasePriority->setVisible(false);
actionIncreasePriority->setVisible(false);

View File

@@ -861,6 +861,7 @@ void TransferListWidget::copySelectedMagnetURIs() const {
}
void TransferListWidget::hidePriorityColumn(bool hide) {
qDebug("hidePriorityColumn(%d)", hide);
setColumnHidden(TR_PRIORITY, hide);
}