projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optionally use system locale for chat timestamp
[quassel.git]
/
src
/
qtui
/
coreconfigwizard.cpp
diff --git
a/src/qtui/coreconfigwizard.cpp
b/src/qtui/coreconfigwizard.cpp
index
63ac400
..
6873528
100644
(file)
--- a/
src/qtui/coreconfigwizard.cpp
+++ b/
src/qtui/coreconfigwizard.cpp
@@
-201,10
+201,16
@@
StorageSelectionPage::StorageSelectionPage(const QHash<QString, QVariant> &backe
registerField("storage.backend", ui.backendList);
registerField("storage.backend", ui.backendList);
+ int defaultIndex = 0;
foreach(QString key, _backends.keys()) {
ui.backendList->addItem(_backends[key].toMap()["DisplayName"].toString(), key);
foreach(QString key, _backends.keys()) {
ui.backendList->addItem(_backends[key].toMap()["DisplayName"].toString(), key);
+ if (_backends[key].toMap()["IsDefault"].toBool()) {
+ defaultIndex = ui.backendList->count() - 1;
+ }
}
}
+ ui.backendList->setCurrentIndex(defaultIndex);
+
on_backendList_currentIndexChanged();
}
on_backendList_currentIndexChanged();
}