Browse Source

Fix display of priority column when the queueing system is enabled

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
44fa7388d5
  1. 4
      src/GUI.cpp
  2. 1
      src/transferlistwidget.cpp

4
src/GUI.cpp

@ -963,7 +963,7 @@ void GUI::loadPreferences(bool configure_session) { @@ -963,7 +963,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);
@ -972,7 +972,7 @@ void GUI::loadPreferences(bool configure_session) { @@ -972,7 +972,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);

1
src/transferlistwidget.cpp

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

Loading…
Cancel
Save