summaryrefslogtreecommitdiff
path: root/src/settingsdialog.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-07-13 10:10:46 +0200
committerTannin <devnull@localhost>2013-07-13 10:10:46 +0200
commit8d34ae34135cfd495556a059c449a5f11ca6212c (patch)
tree555ffc51d1e084ac148ccb4b928898ab1ed4fc62 /src/settingsdialog.cpp
parent849a0a0ef40c9fa1feb15b880aa52fccdd84f234 (diff)
- some fixes to the refreshing behaviour
- "fix" buttons in problems dialog are now actually functional - python proxy now has diagnosis functionality to warn user if correct proxy version is not available - python proxy now has a configurable python path
Diffstat (limited to 'src/settingsdialog.cpp')
-rw-r--r--src/settingsdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/settingsdialog.cpp b/src/settingsdialog.cpp
index 8fb990c1..9f268455 100644
--- a/src/settingsdialog.cpp
+++ b/src/settingsdialog.cpp
@@ -145,8 +145,10 @@ void SettingsDialog::on_pluginsList_currentItemChanged(QListWidgetItem *current,
ui->pluginSettingsList->setEnabled(settings.count() != 0);
for (auto iter = settings.begin(); iter != settings.end(); ++iter) {
QTreeWidgetItem *newItem = new QTreeWidgetItem(QStringList(iter.key()));
- newItem->setData(1, Qt::DisplayRole, *iter);
- newItem->setData(1, Qt::EditRole, *iter);
+ QVariant value = *iter;
+ newItem->setData(1, Qt::DisplayRole, value);
+ newItem->setData(1, Qt::EditRole, value);
+
newItem->setFlags(newItem->flags() | Qt::ItemIsEditable);
ui->pluginSettingsList->addTopLevelItem(newItem);
}