X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fcoreconfigwizard.cpp;h=68735287f559aee837d652d9283bd28151a43818;hp=9dfbc8c2a44343bb40a321bcfca07a5ae04fa1dd;hb=3867471c05de4c463373c6c4d1c414871c14cdc8;hpb=695758015a80eb8c158a9ac4c0f1c0b547e70df3 diff --git a/src/qtui/coreconfigwizard.cpp b/src/qtui/coreconfigwizard.cpp index 9dfbc8c2..68735287 100644 --- a/src/qtui/coreconfigwizard.cpp +++ b/src/qtui/coreconfigwizard.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -201,10 +201,16 @@ StorageSelectionPage::StorageSelectionPage(const QHash &backe registerField("storage.backend", ui.backendList); + int defaultIndex = 0; 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(); }