mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
- Fix column hiding behavior when queueing system is disabled
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.0.1
|
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.0.1
|
||||||
- BUGFIX: µTorrent user-agent is now spoofed correctly
|
- BUGFIX: µTorrent user-agent is now spoofed correctly
|
||||||
|
- BUGFIX: Fix column hiding behavior when queueing system is disabled
|
||||||
|
|
||||||
* Thu Dec 10 2009 - Christophe Dumez <chris@qbittorrent.org> - v2.0.0
|
* Thu Dec 10 2009 - Christophe Dumez <chris@qbittorrent.org> - v2.0.0
|
||||||
- FEATURE: Added program option to disable splash screen
|
- FEATURE: Added program option to disable splash screen
|
||||||
|
|||||||
@@ -762,7 +762,10 @@ void TransferListWidget::displayDLHoSMenu(const QPoint&){
|
|||||||
hideshowColumn.setTitle(tr("Column visibility"));
|
hideshowColumn.setTitle(tr("Column visibility"));
|
||||||
QList<QAction*> actions;
|
QList<QAction*> actions;
|
||||||
for(int i=0; i < TR_HASH; ++i) {
|
for(int i=0; i < TR_HASH; ++i) {
|
||||||
if(!BTSession->isQueueingEnabled() && i == TR_PRIORITY) continue;
|
if(!BTSession->isQueueingEnabled() && i == TR_PRIORITY) {
|
||||||
|
actions.append(0);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
QIcon icon;
|
QIcon icon;
|
||||||
if(isColumnHidden(i))
|
if(isColumnHidden(i))
|
||||||
icon = QIcon(QString::fromUtf8(":/Icons/oxygen/button_cancel.png"));
|
icon = QIcon(QString::fromUtf8(":/Icons/oxygen/button_cancel.png"));
|
||||||
@@ -771,9 +774,12 @@ void TransferListWidget::displayDLHoSMenu(const QPoint&){
|
|||||||
actions.append(hideshowColumn.addAction(icon, listModel->headerData(i, Qt::Horizontal).toString()));
|
actions.append(hideshowColumn.addAction(icon, listModel->headerData(i, Qt::Horizontal).toString()));
|
||||||
}
|
}
|
||||||
// Call menu
|
// Call menu
|
||||||
QAction *act = hideshowColumn.exec(QCursor::pos());
|
QAction *act = 0;
|
||||||
int col = actions.indexOf(act);
|
act = hideshowColumn.exec(QCursor::pos());
|
||||||
setColumnHidden(col, !isColumnHidden(col));
|
if(act) {
|
||||||
|
int col = actions.indexOf(act);
|
||||||
|
setColumnHidden(col, !isColumnHidden(col));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LIBTORRENT_0_15
|
#ifdef LIBTORRENT_0_15
|
||||||
|
|||||||
Reference in New Issue
Block a user