Browse Source

- Fix file prioritizing in a torrent

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
fe8d5a3528
  1. 2
      src/proplistdelegate.h

2
src/proplistdelegate.h

@ -155,6 +155,7 @@ public slots: @@ -155,6 +155,7 @@ public slots:
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const {
QComboBox *combobox = static_cast<QComboBox*>(editor);
int value = combobox->currentIndex();
qDebug("PropListDelegate: setModelData(%d)", value);
switch(value) {
case 1:
model->setData(index, 2); // HIGH
@ -165,6 +166,7 @@ public slots: @@ -165,6 +166,7 @@ public slots:
default:
model->setData(index, 1); // NORMAL
}
emit filteredFilesChanged();
}
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &/* index */) const {

Loading…
Cancel
Save